mirror of
https://github.com/elisspace/core.git
synced 2026-09-30 06:19:55 +00:00
Cast standby_state to int before testing.
This commit is contained in:
@@ -119,7 +119,7 @@ class WemoSwitch(SwitchDevice):
|
||||
def detail_state(self):
|
||||
"""Is the device on - or in standby."""
|
||||
if self.insight_params:
|
||||
standby_state = self.insight_params['state']
|
||||
standby_state = int(self.insight_params['state'])
|
||||
if standby_state == WEMO_ON:
|
||||
return STATE_OFF
|
||||
elif standby_state == WEMO_OFF:
|
||||
|
||||
Reference in New Issue
Block a user