diff --git a/custom_components/adaptive_lighting/config_flow.py b/custom_components/adaptive_lighting/config_flow.py index 4a814190..10ba5d86 100644 --- a/custom_components/adaptive_lighting/config_flow.py +++ b/custom_components/adaptive_lighting/config_flow.py @@ -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))}