Fix Insteon thermostats and reduce logging (#71179)

* Bump pyinsteon to 1.1.0

* Load modem aldb if read write mode is unkwown

* Correct reference to read_write_mode
This commit is contained in:
Tom Harris 2022-05-02 10:42:47 -04:00 committed by GitHub
parent a74f035ae7
commit 5e4e7ed152
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 4 deletions

View File

@ -4,6 +4,7 @@ from contextlib import suppress
import logging import logging
from pyinsteon import async_close, async_connect, devices from pyinsteon import async_close, async_connect, devices
from pyinsteon.constants import ReadWriteMode
from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry
from homeassistant.const import CONF_PLATFORM, EVENT_HOMEASSISTANT_STOP from homeassistant.const import CONF_PLATFORM, EVENT_HOMEASSISTANT_STOP
@ -48,7 +49,8 @@ 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()
await devices.async_load(id_devices=1) load_aldb = devices.modem.aldb.read_write_mode == ReadWriteMode.UNKNOWN
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]
flags = True flags = True

View File

@ -4,7 +4,7 @@
"documentation": "https://www.home-assistant.io/integrations/insteon", "documentation": "https://www.home-assistant.io/integrations/insteon",
"dependencies": ["http", "websocket_api"], "dependencies": ["http", "websocket_api"],
"requirements": [ "requirements": [
"pyinsteon==1.1.0b3", "pyinsteon==1.1.0",
"insteon-frontend-home-assistant==0.1.0" "insteon-frontend-home-assistant==0.1.0"
], ],
"codeowners": ["@teharris1"], "codeowners": ["@teharris1"],

View File

@ -1550,7 +1550,7 @@ pyialarm==1.9.0
pyicloud==1.0.0 pyicloud==1.0.0
# homeassistant.components.insteon # homeassistant.components.insteon
pyinsteon==1.1.0b3 pyinsteon==1.1.0
# homeassistant.components.intesishome # homeassistant.components.intesishome
pyintesishome==1.7.6 pyintesishome==1.7.6

View File

@ -1032,7 +1032,7 @@ pyialarm==1.9.0
pyicloud==1.0.0 pyicloud==1.0.0
# homeassistant.components.insteon # homeassistant.components.insteon
pyinsteon==1.1.0b3 pyinsteon==1.1.0
# homeassistant.components.ipma # homeassistant.components.ipma
pyipma==2.0.5 pyipma==2.0.5