mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-12 06:44:04 +02:00
fix variable d -> service_data
This commit is contained in:
parent
be0e58c3f0
commit
2f5b92f80a
1 changed files with 1 additions and 1 deletions
|
|
@ -382,7 +382,7 @@ class CircadianSwitch(SwitchEntity, RestoreEntity):
|
|||
if which is not None:
|
||||
self.hass.services.call(LIGHT_DOMAIN, SERVICE_TURN_ON, service_data)
|
||||
msg = ", ".join(
|
||||
[f"{k}: v" for k, v in d.items() if k != ATTR_ENTITY_ID]
|
||||
[f"{k}: {v}" for k, v in service_data.items() if k != ATTR_ENTITY_ID]
|
||||
)
|
||||
_LOGGER.debug(f"{light} {which} Adjusted - {msg}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue