Skip to content

Commit

Permalink
Fix unhandled KeyError during Notion setup (home-assistant#114787)
Browse files Browse the repository at this point in the history
  • Loading branch information
bachya authored Apr 4, 2024
1 parent c1c664d commit 841d394
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 841d394

Please sign in to comment.