mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-12 23:04:03 +02:00
better log
This commit is contained in:
parent
d5af8cfcea
commit
ddd2dc59cd
1 changed files with 4 additions and 4 deletions
|
|
@ -1277,8 +1277,10 @@ class AdaptiveSwitch(SwitchEntity, RestoreEntity):
|
|||
):
|
||||
# Skip if adaptation was already executed by the service call interceptor
|
||||
_LOGGER.debug(
|
||||
"%s: Skipping reactive adaptation of %s",
|
||||
"%s: Skipping reactive adaptation of light %s with context.id=%s and context.parent_id=%s",
|
||||
self._name,
|
||||
light,
|
||||
context.id,
|
||||
context.parent_id,
|
||||
)
|
||||
return
|
||||
|
|
@ -1490,9 +1492,7 @@ class AdaptiveSwitch(SwitchEntity, RestoreEntity):
|
|||
)
|
||||
self.manager.mark_as_manual_control(entity_id)
|
||||
return
|
||||
# TODO: I believe I need to separate the concept of random turn ons and # noqa: TD002, FIX002, TD003
|
||||
# manual control because take_over_control can be False which means that
|
||||
# manual control is ignored. Or deprecate take_over_contol and make it always True?
|
||||
|
||||
if self._adapt_delay > 0:
|
||||
await asyncio.sleep(self._adapt_delay)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue