mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 08:47:57 +00:00
Split comment to keep line short
This commit is contained in:
parent
3256552675
commit
93cd7bfc5d
@ -59,6 +59,9 @@ class WemoSwitch(SwitchDevice):
|
||||
if not is_on:
|
||||
return STATE_OFF
|
||||
elif self.is_standby:
|
||||
print(STATE_STANDBY)
|
||||
print(self.wemo)
|
||||
# import pdb; pdb.set_trace()
|
||||
return STATE_STANDBY
|
||||
return STATE_ON
|
||||
|
||||
@ -79,7 +82,8 @@ class WemoSwitch(SwitchDevice):
|
||||
""" Is the device on - or in standby. """
|
||||
if self.insight_params:
|
||||
standby_state = self.insight_params['state']
|
||||
# Standby is actually '8' but seems more defensive to check for the On and Off states
|
||||
# Standby is actually '8' but seems more defensive
|
||||
# to check for the On and Off states
|
||||
if standby_state == '1' or standby_state == '0':
|
||||
return False
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user