mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-11 22:34:04 +02:00
simplify self._entity_id
This commit is contained in:
parent
875542650e
commit
b9ca03be9c
1 changed files with 1 additions and 1 deletions
|
|
@ -163,7 +163,7 @@ class CircadianSwitch(SwitchEntity, RestoreEntity):
|
|||
self.hass = hass
|
||||
self._circadian_lighting = circadian_lighting
|
||||
self._name = name
|
||||
self._entity_id = "switch." + slugify(f"circadian_lighting {name}")
|
||||
self._entity_id = f"switch.circadian_lighting_{slugify(name)}"
|
||||
self._state = None
|
||||
self._icon = ICON
|
||||
self._hs_color = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue