forked from home-assistant/core
Fix OpenWeatherMap options not being initialized the first time (#58736)
This commit is contained in:
committed by
Paulus Schoutsen
parent
5ad1ec611d
commit
6e9d759798
@@ -109,13 +109,15 @@ class OpenWeatherMapOptionsFlow(config_entries.OptionsFlow):
|
||||
vol.Optional(
|
||||
CONF_MODE,
|
||||
default=self.config_entry.options.get(
|
||||
CONF_MODE, DEFAULT_FORECAST_MODE
|
||||
CONF_MODE,
|
||||
self.config_entry.data.get(CONF_MODE, DEFAULT_FORECAST_MODE),
|
||||
),
|
||||
): vol.In(FORECAST_MODES),
|
||||
vol.Optional(
|
||||
CONF_LANGUAGE,
|
||||
default=self.config_entry.options.get(
|
||||
CONF_LANGUAGE, DEFAULT_LANGUAGE
|
||||
CONF_LANGUAGE,
|
||||
self.config_entry.data.get(CONF_LANGUAGE, DEFAULT_LANGUAGE),
|
||||
),
|
||||
): vol.In(LANGUAGES),
|
||||
}
|
||||
|
Reference in New Issue
Block a user