mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-11 22:34:04 +02:00
Require take_over_control for to ignore non-turn_on state off -> on event (#695)
This commit is contained in:
parent
8d13f13873
commit
807f7109d4
1 changed files with 2 additions and 1 deletions
|
|
@ -1465,7 +1465,8 @@ class AdaptiveSwitch(SwitchEntity, RestoreEntity):
|
|||
async def _respond_to_off_to_on_event(self, entity_id: str, event: Event) -> None:
|
||||
assert not self.manager.is_proactively_adapting(event.context.id)
|
||||
if (
|
||||
not self._detect_non_ha_changes
|
||||
self._take_over_control
|
||||
and not self._detect_non_ha_changes
|
||||
and not self.manager._off_to_on_state_event_is_from_turn_on(
|
||||
entity_id,
|
||||
event,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue