From ce7e08d8249f8b5ee33e76173d80e004083a738b Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Tue, 25 Aug 2020 18:18:21 +0200 Subject: [PATCH] fix last f-string --- 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 3486e4f5..3aaa4951 100644 --- a/custom_components/circadian_lighting/switch.py +++ b/custom_components/circadian_lighting/switch.py @@ -339,7 +339,7 @@ class CircadianSwitch(SwitchEntity, RestoreEntity): self._disable_entity is not None and self.hass.states.get(self._disable_entity).state == self._disable_state ): - _LOGGER.debug(f"{self._name} disabled by " + str(self._disable_entity)) + _LOGGER.debug(f"{self._name} disabled by {self._disable_entity}") return False else: return True