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 GitHub
parent 5c6753f4c0
commit b5ec24ef63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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]