mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +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:
|
if not is_on:
|
||||||
return STATE_OFF
|
return STATE_OFF
|
||||||
elif self.is_standby:
|
elif self.is_standby:
|
||||||
|
print(STATE_STANDBY)
|
||||||
|
print(self.wemo)
|
||||||
|
# import pdb; pdb.set_trace()
|
||||||
return STATE_STANDBY
|
return STATE_STANDBY
|
||||||
return STATE_ON
|
return STATE_ON
|
||||||
|
|
||||||
@ -79,7 +82,8 @@ class WemoSwitch(SwitchDevice):
|
|||||||
""" Is the device on - or in standby. """
|
""" Is the device on - or in standby. """
|
||||||
if self.insight_params:
|
if self.insight_params:
|
||||||
standby_state = self.insight_params['state']
|
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':
|
if standby_state == '1' or standby_state == '0':
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user