From 2f5b92f80a96a85717a43551815ba686fed361bd Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Thu, 27 Aug 2020 22:23:31 +0200 Subject: [PATCH] fix variable d -> service_data --- custom_components/circadian_lighting/switch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}")