Cast standby_state to int before testing.

pull/1401/head
pavoni 2016-02-26 00:16:33 +00:00
parent 86973226b1
commit ddbceebd65
1 changed files with 1 additions and 1 deletions

View File

@ -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: