1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-29 08:32:26 +01:00

Fix some configs after #5181 (#5209)

This commit is contained in:
Jesse Hills
2023-08-07 11:48:23 +12:00
committed by GitHub
parent 0ae3fcb0b7
commit 00f9af70a9
9 changed files with 27 additions and 22 deletions

View File

@@ -74,8 +74,8 @@ async def to_code(config):
ibeacon_uuid = esp32_ble_tracker.as_hex_array(str(ibeacon_uuid))
cg.add(var.set_ibeacon_uuid(ibeacon_uuid))
if ibeacon_major := config.get(CONF_IBEACON_MAJOR):
if (ibeacon_major := config.get(CONF_IBEACON_MAJOR)) is not None:
cg.add(var.set_ibeacon_major(ibeacon_major))
if ibeacon_minor := config.get(CONF_IBEACON_MINOR):
if (ibeacon_minor := config.get(CONF_IBEACON_MINOR)) is not None:
cg.add(var.set_ibeacon_minor(ibeacon_minor))