Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion homeassistant/components/insteon_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
CONF_PASSWORD, CONF_USERNAME, CONF_HOST, CONF_PORT, CONF_TIMEOUT)
import homeassistant.helpers.config_validation as cv

REQUIREMENTS = ['insteonlocal==0.39']
REQUIREMENTS = ['insteonlocal==0.48']

_LOGGER = logging.getLogger(__name__)

Expand Down
4 changes: 4 additions & 0 deletions homeassistant/components/light/insteon_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ def brightness(self):
def update(self):
"""Update state of the light."""
resp = self.node.status(0)

while 'error' in resp and resp['error'] is True:
resp = self.node.status(0)

if 'cmd2' in resp:
self._value = int(resp['cmd2'], 16)

Expand Down
4 changes: 4 additions & 0 deletions homeassistant/components/switch/insteon_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ def unique_id(self):
def update(self):
"""Get the updated status of the switch."""
resp = self.node.status(0)

while 'error' in resp and resp['error'] is True:
resp = self.node.status(0)

if 'cmd2' in resp:
self._state = int(resp['cmd2'], 16) > 0

Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ influxdb==3.0.0
insteon_hub==0.4.5

# homeassistant.components.insteon_local
insteonlocal==0.39
insteonlocal==0.48

# homeassistant.components.insteon_plm
insteonplm==0.7.4
Expand Down