From 5b98fedf1264c31ede7245a40987436dfd1de6e0 Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Tue, 25 Aug 2020 18:52:58 +0200 Subject: [PATCH] black --- custom_components/circadian_lighting/switch.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/custom_components/circadian_lighting/switch.py b/custom_components/circadian_lighting/switch.py index 76aaa6f7..5491758f 100644 --- a/custom_components/circadian_lighting/switch.py +++ b/custom_components/circadian_lighting/switch.py @@ -283,7 +283,9 @@ class CircadianSwitch(SwitchEntity, RestoreEntity): return is_sleep def calc_ct(self): - col_temp = self._sleep_colortemp if self.is_sleep() else self._cl.data["colortemp"] + col_temp = ( + self._sleep_colortemp if self.is_sleep() else self._cl.data["colortemp"] + ) return color_temperature_kelvin_to_mired(col_temp) def calc_rgb(self):