From c1af45d46a79734a48170a3d7b321577ca4bb29d Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Mon, 31 Aug 2020 08:36:04 +0200 Subject: [PATCH] set self._brightness in __init__ --- custom_components/circadian_lighting/switch.py | 1 + 1 file changed, 1 insertion(+) diff --git a/custom_components/circadian_lighting/switch.py b/custom_components/circadian_lighting/switch.py index 987ee748..bb90bce8 100644 --- a/custom_components/circadian_lighting/switch.py +++ b/custom_components/circadian_lighting/switch.py @@ -167,6 +167,7 @@ class CircadianSwitch(SwitchEntity, RestoreEntity): self._state = None self._icon = ICON self._hs_color = None + self._brightness = None self._lights_ct = lights_ct self._lights_rgb = lights_rgb self._lights_xy = lights_xy