mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-12 06:44:04 +02:00
fix name bug
This commit is contained in:
parent
4de7e8d1e0
commit
da0b2552b9
1 changed files with 3 additions and 2 deletions
|
|
@ -858,8 +858,9 @@ class SimpleSwitch(SwitchEntity, RestoreEntity):
|
|||
self._icon = ICON
|
||||
self._state = None
|
||||
self._which = which
|
||||
self._unique_id = f"{self._name}_{slugify(self._which)}"
|
||||
self._name = f"Adaptive Lighting {which}: {data[CONF_NAME]}"
|
||||
name = data[CONF_NAME]
|
||||
self._unique_id = f"{name}_{slugify(self._which)}"
|
||||
self._name = f"Adaptive Lighting {which}: {name}"
|
||||
self._initial_state = initial_state
|
||||
|
||||
@property
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue