mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Fix OpenWeatherMap options not being initialized the first time (#58736)
This commit is contained in:
parent
93bc88be16
commit
1aa34b6892
@ -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),
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user