mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 22:37:11 +00:00
Tidy
This commit is contained in:
parent
6c5ceaf686
commit
f4c3ac2a62
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user