mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-13 23:34:04 +02:00
log fire adaptive_lighting.manual_control event
This commit is contained in:
parent
ff2321ece9
commit
b9ec138c7d
1 changed files with 5 additions and 0 deletions
|
|
@ -252,6 +252,11 @@ def _fire_manual_control_event(
|
|||
"""Fire an event that 'light' is marked as manual_control."""
|
||||
hass = switch.hass
|
||||
fire = hass.bus.async_fire if is_async else hass.bus.fire
|
||||
_LOGGER.debug(
|
||||
"'adaptive_lighting.manual_control' event fired for %s for light %s",
|
||||
switch.entity_id,
|
||||
light,
|
||||
)
|
||||
fire(
|
||||
f"{DOMAIN}.manual_control",
|
||||
{ATTR_ENTITY_ID: light, SWITCH_DOMAIN: switch.entity_id},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue