Load Insteon modem database on startup if needed (#71261)

This commit is contained in:
Tom Harris 2022-05-03 14:34:20 -04:00 committed by GitHub
parent 236d8aa277
commit 3aeda6b18e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@ async def async_get_device_config(hass, config_entry):
with suppress(AttributeError): with suppress(AttributeError):
await devices[address].async_status() 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) await devices.async_load(id_devices=1, load_modem_aldb=load_aldb)
for addr in devices: for addr in devices:
device = devices[addr] device = devices[addr]