Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bachya committed Mar 8, 2024
1 parent 0c23839 commit 5d1cf99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/notion/__init__.py
Expand Up @@ -181,7 +181,7 @@ def async_save_refresh_token(refresh_token: str) -> None:
entry.async_on_unload(client.add_refresh_token_callback(async_save_refresh_token))

# Save the client's refresh token if it's different than what we already have:
if (token := client.refresh_token) and token != entry.data[CONF_REFRESH_TOKEN]:
if (token := client.refresh_token) and token != entry.data.get(CONF_REFRESH_TOKEN):
async_save_refresh_token(token)

hass.config_entries.async_update_entry(entry, **entry_updates)
Expand Down

0 comments on commit 5d1cf99

Please sign in to comment.