mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-11 14:24:03 +02:00
linting, sub string for constant
This commit is contained in:
parent
14019695a4
commit
c24ac4e615
1 changed files with 6 additions and 2 deletions
|
|
@ -98,8 +98,12 @@ class OptionsFlowHandler(config_entries.OptionsFlow):
|
|||
]
|
||||
for configured_light in data[CONF_LIGHTS]:
|
||||
if configured_light not in all_lights:
|
||||
errors = {"lights":"entity_missing"}
|
||||
_LOGGER.error("%s: light entity %s is configured, but was not found", data[CONF_NAME], configured_light)
|
||||
errors = {CONF_LIGHTS: "entity_missing"}
|
||||
_LOGGER.error(
|
||||
"%s: light entity %s is configured, but was not found",
|
||||
data[CONF_NAME],
|
||||
configured_light,
|
||||
)
|
||||
all_lights.append(configured_light)
|
||||
to_replace = {CONF_LIGHTS: cv.multi_select(sorted(all_lights))}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue