From ddbceebd656e24d87599f6f32c203f021be948b0 Mon Sep 17 00:00:00 2001 From: pavoni Date: Fri, 26 Feb 2016 00:16:33 +0000 Subject: [PATCH] Cast standby_state to int before testing. --- homeassistant/components/switch/wemo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/switch/wemo.py b/homeassistant/components/switch/wemo.py index 5eac5a14ed5..5a38e7d20ce 100644 --- a/homeassistant/components/switch/wemo.py +++ b/homeassistant/components/switch/wemo.py @@ -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: