From 3fb40deacb25728004db05c2e4140c9a179f20ad Mon Sep 17 00:00:00 2001 From: G Johansson Date: Thu, 30 May 2024 22:35:36 +0200 Subject: [PATCH] Fix key issue in config entry options in Openweathermap (#118506) --- homeassistant/components/openweathermap/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/openweathermap/__init__.py b/homeassistant/components/openweathermap/__init__.py index 7b21ae89b96..44c5179f227 100644 --- a/homeassistant/components/openweathermap/__init__.py +++ b/homeassistant/components/openweathermap/__init__.py @@ -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]