Fix unhandled KeyError during Notion setup (#114787)

This commit is contained in:
Aaron Bach 2024-04-03 18:20:20 -06:00 committed by GitHub
parent c1c664dc09
commit 841d3940d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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