diff --git a/custom_components/circadian_lighting/switch.py b/custom_components/circadian_lighting/switch.py index 96afdfbd..aae9bad8 100644 --- a/custom_components/circadian_lighting/switch.py +++ b/custom_components/circadian_lighting/switch.py @@ -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}")