Skip to content

Commit

Permalink
Fix unhandled KeyError during Notion setup (#114787)
Browse files Browse the repository at this point in the history
  • Loading branch information
bachya authored and frenck committed Apr 5, 2024
1 parent a39e1a6 commit ef8e548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/notion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ef8e548

Please sign in to comment.