diff --git a/esphome/components/template/cover/__init__.py b/esphome/components/template/cover/__init__.py index 0c81e095be..14050cb7c6 100644 --- a/esphome/components/template/cover/__init__.py +++ b/esphome/components/template/cover/__init__.py @@ -93,6 +93,7 @@ def to_code(config): cg.add(var.set_optimistic(config[CONF_OPTIMISTIC])) cg.add(var.set_assumed_state(config[CONF_ASSUMED_STATE])) cg.add(var.set_restore_mode(config[CONF_RESTORE_MODE])) + cg.add(var.set_has_position(config[CONF_HAS_POSITION])) @automation.register_action( diff --git a/esphome/py_compat.py b/esphome/py_compat.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/script/bump-version.py b/script/bump-version.py index 54e8c95753..b7b048eb22 100755 --- a/script/bump-version.py +++ b/script/bump-version.py @@ -59,7 +59,7 @@ def write_version(version: Version): sub( "esphome/const.py", r"^PATCH_VERSION = .*$", - f"PATCH_VERSION = '{version.full_patch}'", + f'PATCH_VERSION = "{version.full_patch}"', ) diff --git a/tests/test1.yaml b/tests/test1.yaml index df1c340228..a8633a7067 100644 --- a/tests/test1.yaml +++ b/tests/test1.yaml @@ -261,6 +261,7 @@ mcp23s17: cs_pin: GPIO12 deviceaddress: 1 + sensor: - platform: ble_client ble_client_id: ble_foo