mirror of
https://github.com/home-assistant/core
synced 2024-09-18 23:23:31 +00:00
Fix unhandled KeyError
during Notion setup (#114787)
This commit is contained in:
parent
c1c664dc09
commit
841d3940d1
|
@ -108,7 +108,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||
(CONF_REFRESH_TOKEN, client.refresh_token),
|
||||
(CONF_USER_UUID, client.user_uuid),
|
||||
):
|
||||
if entry.data[key] == value:
|
||||
if entry.data.get(key) == value:
|
||||
continue
|
||||
entry_updates["data"][key] = value
|
||||
|
||||
|
|
Loading…
Reference in a new issue