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_optimistic(config[CONF_OPTIMISTIC]))
cg.add(var.set_assumed_state(config[CONF_ASSUMED_STATE])) cg.add(var.set_assumed_state(config[CONF_ASSUMED_STATE]))
cg.add(var.set_restore_mode(config[CONF_RESTORE_MODE])) cg.add(var.set_restore_mode(config[CONF_RESTORE_MODE]))
cg.add(var.set_has_position(config[CONF_HAS_POSITION]))
@automation.register_action( @automation.register_action(

View file

View file

@ -59,7 +59,7 @@ def write_version(version: Version):
sub( sub(
"esphome/const.py", "esphome/const.py",
r"^PATCH_VERSION = .*$", 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 cs_pin: GPIO12
deviceaddress: 1 deviceaddress: 1
sensor: sensor:
- platform: ble_client - platform: ble_client
ble_client_id: ble_foo ble_client_id: ble_foo