mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 06:58:11 +01:00
Merge branch 'master' into dev
This commit is contained in:
commit
4ffa68b773
4 changed files with 3 additions and 1 deletions
|
@ -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(
|
||||||
|
|
|
@ -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}"',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue