Merge branch 'master' into dev

This commit is contained in:
Jesse Hills 2021-05-19 14:02:04 +12:00
commit 4ffa68b773
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A
4 changed files with 3 additions and 1 deletions

View File

@ -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(

View File

View File

@ -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}"',
)

View File

@ -261,6 +261,7 @@ mcp23s17:
cs_pin: GPIO12
deviceaddress: 1
sensor:
- platform: ble_client
ble_client_id: ble_foo