diff --git a/custom_components/adaptive_lighting/config_flow.py b/custom_components/adaptive_lighting/config_flow.py index c3326998..10ba5d86 100644 --- a/custom_components/adaptive_lighting/config_flow.py +++ b/custom_components/adaptive_lighting/config_flow.py @@ -98,6 +98,12 @@ class OptionsFlowHandler(config_entries.OptionsFlow): ] for configured_light in data[CONF_LIGHTS]: if configured_light not in all_lights: + 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))} diff --git a/custom_components/adaptive_lighting/strings.json b/custom_components/adaptive_lighting/strings.json index 0755cca8..b82f875e 100644 --- a/custom_components/adaptive_lighting/strings.json +++ b/custom_components/adaptive_lighting/strings.json @@ -46,7 +46,8 @@ } }, "error": { - "option_error": "Invalid option" + "option_error": "Invalid option", + "entity_missing": "One or more selected light entities are missing from Home Assistant" } } } diff --git a/custom_components/adaptive_lighting/translations/da.json b/custom_components/adaptive_lighting/translations/da.json index 2a881e5d..5b63c115 100644 --- a/custom_components/adaptive_lighting/translations/da.json +++ b/custom_components/adaptive_lighting/translations/da.json @@ -43,7 +43,8 @@ } }, "error": { - "option_error": "Ugyldig indstilling" + "option_error": "Ugyldig indstilling", + "entity_missing": "Et udvalgt lys blev ikke fundet " } } } diff --git a/custom_components/adaptive_lighting/translations/de.json b/custom_components/adaptive_lighting/translations/de.json index 24c1d07e..c1da2ccd 100644 --- a/custom_components/adaptive_lighting/translations/de.json +++ b/custom_components/adaptive_lighting/translations/de.json @@ -43,7 +43,8 @@ } }, "error": { - "option_error": "Fehlerhafte Option" + "option_error": "Fehlerhafte Option", + "entity_missing": "Ein ausgewähltes Licht wurde nicht gefunden" } } } diff --git a/custom_components/adaptive_lighting/translations/en.json b/custom_components/adaptive_lighting/translations/en.json index d4070a30..7da48c8f 100644 --- a/custom_components/adaptive_lighting/translations/en.json +++ b/custom_components/adaptive_lighting/translations/en.json @@ -47,7 +47,8 @@ } }, "error": { - "option_error": "Invalid option" + "option_error": "Invalid option", + "entity_missing": "One or more selected light entities are missing from Home Assistant" } } } diff --git a/custom_components/adaptive_lighting/translations/et.json b/custom_components/adaptive_lighting/translations/et.json index 7c9af5d2..b2599f2a 100644 --- a/custom_components/adaptive_lighting/translations/et.json +++ b/custom_components/adaptive_lighting/translations/et.json @@ -43,7 +43,8 @@ } }, "error": { - "option_error": "Vigane suvand" + "option_error": "Vigane suvand", + "entity_missing": "Valitud valgust ei leitud" } } } diff --git a/custom_components/adaptive_lighting/translations/fr.json b/custom_components/adaptive_lighting/translations/fr.json index 966967ce..a41d84a0 100644 --- a/custom_components/adaptive_lighting/translations/fr.json +++ b/custom_components/adaptive_lighting/translations/fr.json @@ -44,7 +44,8 @@ } }, "error": { - "option_error": "Option non valide" + "option_error": "Option non valide", + "entity_missing": "Une lumière sélectionnée n’a pas été trouvée" } } } diff --git a/custom_components/adaptive_lighting/translations/it.json b/custom_components/adaptive_lighting/translations/it.json index c2263631..c1ae6163 100644 --- a/custom_components/adaptive_lighting/translations/it.json +++ b/custom_components/adaptive_lighting/translations/it.json @@ -45,7 +45,8 @@ } }, "error": { - "option_error": "Opzione non valida" + "option_error": "Opzione non valida", + "entity_missing": "Non è stata trovata una luce selezionata" } } } diff --git a/custom_components/adaptive_lighting/translations/nb.json b/custom_components/adaptive_lighting/translations/nb.json index 2abeae9b..7cfba678 100644 --- a/custom_components/adaptive_lighting/translations/nb.json +++ b/custom_components/adaptive_lighting/translations/nb.json @@ -43,7 +43,8 @@ } }, "error":{ - "option_error":"En eller flere valgte innstillinger er ugyldige" + "option_error":"En eller flere valgte innstillinger er ugyldige", + "entity_missing": "Et utvalgt lys ble ikke funnet" } } } diff --git a/custom_components/adaptive_lighting/translations/pl.json b/custom_components/adaptive_lighting/translations/pl.json index 07cb8d79..80cc8fdd 100644 --- a/custom_components/adaptive_lighting/translations/pl.json +++ b/custom_components/adaptive_lighting/translations/pl.json @@ -44,7 +44,8 @@ } }, "error": { - "option_error": "Błędne opcje" + "option_error": "Błędne opcje", + "entity_missing": "Nie znaleziono wybranego światła" } } } diff --git a/custom_components/adaptive_lighting/translations/pt-BR.json b/custom_components/adaptive_lighting/translations/pt-BR.json index 87d74547..43eacb01 100644 --- a/custom_components/adaptive_lighting/translations/pt-BR.json +++ b/custom_components/adaptive_lighting/translations/pt-BR.json @@ -44,7 +44,8 @@ } }, "error": { - "option_error": "Opção inválida" + "option_error": "Opção inválida", + "entity_missing": "Uma luz selecionada não foi encontrada" } } } diff --git a/custom_components/adaptive_lighting/translations/ru.json b/custom_components/adaptive_lighting/translations/ru.json index 1f18a68a..2e160f9e 100644 --- a/custom_components/adaptive_lighting/translations/ru.json +++ b/custom_components/adaptive_lighting/translations/ru.json @@ -45,7 +45,8 @@ } }, "error": { - "option_error": "Ошибка в настройках!" + "option_error": "Ошибка в настройках!", + "entity_missing": "Выбранный индикатор не найден" } } } diff --git a/custom_components/adaptive_lighting/translations/sv.json b/custom_components/adaptive_lighting/translations/sv.json index 8c9c4bf7..2239ad3b 100644 --- a/custom_components/adaptive_lighting/translations/sv.json +++ b/custom_components/adaptive_lighting/translations/sv.json @@ -46,7 +46,8 @@ } }, "error": { - "option_error": "Ogiltlig inställning" + "option_error": "Ogiltlig inställning", + "entity_missing": "Ett valt ljus hittades inte" } } } diff --git a/custom_components/adaptive_lighting/translations/uk.json b/custom_components/adaptive_lighting/translations/uk.json index c71d5e63..90265f2e 100644 --- a/custom_components/adaptive_lighting/translations/uk.json +++ b/custom_components/adaptive_lighting/translations/uk.json @@ -43,7 +43,8 @@ } }, "error": { - "option_error": "Хибна опція" + "option_error": "Хибна опція", + "entity_missing": "Вибраного світла в домашньому помічнику не знайшли" } } }