Skip to content
Snippets Groups Projects
Commit ddbceebd authored by pavoni's avatar pavoni
Browse files

Cast standby_state to int before testing.

parent 86973226
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment