Fixing schedule switch #6
This commit is contained in:
parent
8a9eff2bb1
commit
aeb49eb253
@ -70,11 +70,7 @@ class VorwerkScheduleSwitch(CoordinatorEntity, ToggleEntity):
|
|||||||
@property
|
@property
|
||||||
def is_on(self):
|
def is_on(self):
|
||||||
"""Return true if switch is on."""
|
"""Return true if switch is on."""
|
||||||
if self._state.available:
|
return bool(self._state.schedule_enabled)
|
||||||
if self._state.schedule_enabled:
|
|
||||||
return STATE_ON
|
|
||||||
else:
|
|
||||||
return STATE_OFF
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def device_info(self):
|
def device_info(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user