mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 01:07:10 +00:00
Load Insteon modem database on startup if needed (#71261)
This commit is contained in:
parent
236d8aa277
commit
3aeda6b18e
@ -49,7 +49,7 @@ async def async_get_device_config(hass, config_entry):
|
||||
with suppress(AttributeError):
|
||||
await devices[address].async_status()
|
||||
|
||||
load_aldb = devices.modem.aldb.read_write_mode == ReadWriteMode.UNKNOWN
|
||||
load_aldb = 2 if devices.modem.aldb.read_write_mode == ReadWriteMode.UNKNOWN else 1
|
||||
await devices.async_load(id_devices=1, load_modem_aldb=load_aldb)
|
||||
for addr in devices:
|
||||
device = devices[addr]
|
||||
|
Loading…
x
Reference in New Issue
Block a user