mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-11 22:34:04 +02:00
to_state will always be on
This commit is contained in:
parent
a464189ce0
commit
37ac31c3c6
1 changed files with 2 additions and 1 deletions
|
|
@ -382,7 +382,8 @@ class CircadianSwitch(SwitchEntity, RestoreEntity):
|
|||
await asyncio.wait(tasks)
|
||||
|
||||
async def _light_state_changed(self, entity_id, from_state, to_state):
|
||||
if to_state.state == "on" and (from_state is None or from_state.state != "on"):
|
||||
assert to_state.state == "on"
|
||||
if from_state is None or from_state.state != "on":
|
||||
_LOGGER.debug(_difference_between_states(from_state, to_state))
|
||||
await self._force_update_switch(lights=[entity_id])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue