Fix key issue in config entry options in Openweathermap (#118506)
This commit is contained in:
parent
5c6753f4c0
commit
b5ec24ef63
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue