Fix key issue in config entry options in Openweathermap (#118506)

This commit is contained in:
G Johansson 2024-05-30 22:35:36 +02:00 committed by Paulus Schoutsen
parent 38c88c576b
commit 3fb40deacb

View File

@ -101,6 +101,6 @@ async def async_unload_entry(
def _get_config_value(config_entry: ConfigEntry, key: str) -> Any:
if config_entry.options:
if config_entry.options and key in config_entry.options:
return config_entry.options[key]
return config_entry.data[key]