From f4c3ac2a628b8d5b048facb455ff309c2daee37b Mon Sep 17 00:00:00 2001 From: pavoni Date: Wed, 20 Jan 2016 11:19:00 +0000 Subject: [PATCH] Tidy --- homeassistant/components/switch/wemo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/switch/wemo.py b/homeassistant/components/switch/wemo.py index c3b6d434b73..f476cdd980b 100644 --- a/homeassistant/components/switch/wemo.py +++ b/homeassistant/components/switch/wemo.py @@ -109,9 +109,9 @@ class WemoSwitch(SwitchDevice): # Is the maker switch configured as toggle(0) or momentary (1). if self.maker_params['switchmode']: if self.maker_params['switchmode'] == '1': - attr[ATTR_SWITCH_MODE] = MAKER_SWITCH_MOMENTARY + attr[ATTR_SWITCH_MODE] = MAKER_SWITCH_MOMENTARY else: - attr[ATTR_SWITCH_MODE] = MAKER_SWITCH_TOGGLE + attr[ATTR_SWITCH_MODE] = MAKER_SWITCH_TOGGLE return attr