Fix issue with Insteon linked devices maintaining current state (#94286)

* Bump pyinsteon

* Update tests
This commit is contained in:
Tom Harris 2023-06-11 10:21:33 -04:00 committed by GitHub
parent 3cf2c81baa
commit 3eedbe92ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

View file

@ -17,7 +17,7 @@
"iot_class": "local_push", "iot_class": "local_push",
"loggers": ["pyinsteon", "pypubsub"], "loggers": ["pyinsteon", "pypubsub"],
"requirements": [ "requirements": [
"pyinsteon==1.4.2", "pyinsteon==1.4.3",
"insteon-frontend-home-assistant==0.3.5" "insteon-frontend-home-assistant==0.3.5"
], ],
"usb": [ "usb": [

View file

@ -1724,7 +1724,7 @@ pyialarm==2.2.0
pyicloud==1.0.0 pyicloud==1.0.0
# homeassistant.components.insteon # homeassistant.components.insteon
pyinsteon==1.4.2 pyinsteon==1.4.3
# homeassistant.components.intesishome # homeassistant.components.intesishome
pyintesishome==1.8.0 pyintesishome==1.8.0

View file

@ -1270,7 +1270,7 @@ pyialarm==2.2.0
pyicloud==1.0.0 pyicloud==1.0.0
# homeassistant.components.insteon # homeassistant.components.insteon
pyinsteon==1.4.2 pyinsteon==1.4.3
# homeassistant.components.ipma # homeassistant.components.ipma
pyipma==3.0.6 pyipma==3.0.6

View file

@ -151,11 +151,11 @@ class MockDevices:
for flag in operating_flags: for flag in operating_flags:
value = operating_flags[flag] value = operating_flags[flag]
if device.operating_flags.get(flag): if device.operating_flags.get(flag):
device.operating_flags[flag].load(value) device.operating_flags[flag].set_value(value)
for flag in properties: for flag in properties:
value = properties[flag] value = properties[flag]
if device.properties.get(flag): if device.properties.get(flag):
device.properties[flag].load(value) device.properties[flag].set_value(value)
async def async_add_device(self, address=None, multiple=False): async def async_add_device(self, address=None, multiple=False):
"""Mock the async_add_device method.""" """Mock the async_add_device method."""

View file

@ -119,7 +119,7 @@ async def test_get_read_only_properties(
mock_read_only = ExtendedProperty( mock_read_only = ExtendedProperty(
"44.44.44", "mock_read_only", bool, is_read_only=True "44.44.44", "mock_read_only", bool, is_read_only=True
) )
mock_read_only.load(False) mock_read_only.set_value(False)
ws_client, devices = await _setup( ws_client, devices = await _setup(
hass, hass_ws_client, "44.44.44", iolinc_properties_data hass, hass_ws_client, "44.44.44", iolinc_properties_data
@ -368,7 +368,7 @@ async def test_change_float_property(
) )
device = devices["44.44.44"] device = devices["44.44.44"]
delay_prop = device.configuration[MOMENTARY_DELAY] delay_prop = device.configuration[MOMENTARY_DELAY]
delay_prop.load(0) delay_prop.set_value(0)
with patch.object(insteon.api.properties, "devices", devices): with patch.object(insteon.api.properties, "devices", devices):
await ws_client.send_json( await ws_client.send_json(
{ {