mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
Fix key issue in config entry options in Openweathermap (#118506)
This commit is contained in:
parent
5c6753f4c0
commit
b5ec24ef63
@ -101,6 +101,6 @@ async def async_unload_entry(
|
|||||||
|
|
||||||
|
|
||||||
def _get_config_value(config_entry: ConfigEntry, key: str) -> Any:
|
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.options[key]
|
||||||
return config_entry.data[key]
|
return config_entry.data[key]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user