mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-17 01:04:05 +02:00
more simplifications
This commit is contained in:
parent
5f1c7ad827
commit
8605578301
1 changed files with 2 additions and 6 deletions
|
|
@ -178,9 +178,7 @@ class CircadianSwitch(SwitchEntity, RestoreEntity):
|
|||
self.hass = hass
|
||||
self._cl = cl
|
||||
self._name = name
|
||||
self._entity_id = "switch." + slugify(
|
||||
"{} {}".format("circadian_lighting", name)
|
||||
)
|
||||
self._entity_id = "switch." + slugify(f"circadian_lighting {name}")
|
||||
self._state = None
|
||||
self._icon = ICON
|
||||
self._hs_color = None
|
||||
|
|
@ -198,9 +196,7 @@ class CircadianSwitch(SwitchEntity, RestoreEntity):
|
|||
self._disable_entity = disable_entity
|
||||
self._disable_state = disable_state
|
||||
self._initial_transition = initial_transition
|
||||
self._attributes = {}
|
||||
self._attributes["hs_color"] = self._hs_color
|
||||
self._attributes["brightness"] = None
|
||||
self._attributes = {"hs_color": self._hs_color, "brightness": None}
|
||||
|
||||
self._lights = []
|
||||
if lights_ct is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue