mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-12 06:44:04 +02:00
black
This commit is contained in:
parent
d2dda06802
commit
5b98fedf12
1 changed files with 3 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue