From c24ac4e615c837503af87caa6dbcaa1b179b8128 Mon Sep 17 00:00:00 2001 From: danaues Date: Sat, 29 Oct 2022 23:58:03 +0000 Subject: [PATCH] linting, sub string for constant --- custom_components/adaptive_lighting/config_flow.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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))}