Insteon lib (#6505)
* use lib with caching to reduce collisions * use 0.43 * change requirements * update the lib to 0.44 * update req * fix typo * just keep checking * just keep checking - switch * use 0.45 with file cache * requirements * Update requirements_all.txt * Update insteon_local.py * Update requirements_all.txt * Update insteon_local.py * update library * fix lint
This commit is contained in:
1 parent
49308bec13
commit
330d352d3a
4 files changed
+10
-2
No files matched your search
@@ -143,6 +143,10 @@ class InsteonLocalSwitchDevice(SwitchDevice):
|
||||
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
|
||||
|
||||
|
||||
Reference in new issue
Block a user