mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-12 14:54:04 +02:00
Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7eebe2407a |
1 changed files with 2 additions and 1 deletions
|
|
@ -1556,6 +1556,8 @@ class AdaptiveSwitch(SwitchEntity, RestoreEntity):
|
|||
if event.context.parent_id and not self.manager.is_proactively_adapting(
|
||||
event.context.id,
|
||||
):
|
||||
# We don't reset manual_control because it might be set before
|
||||
# the 'off' → 'on' event is fired.
|
||||
self.manager.reset(entity_id, reset_manual_control=False)
|
||||
|
||||
lock = self._locks.setdefault(entity_id, asyncio.Lock())
|
||||
|
|
@ -2069,7 +2071,6 @@ class AdaptiveLightingManager:
|
|||
call.context.id,
|
||||
)
|
||||
|
||||
self.reset(entity_id, reset_manual_control=False)
|
||||
self.clear_proactively_adapting(entity_id)
|
||||
|
||||
transition = data[CONF_PARAMS].get(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue