Fix Mastodon migrate config entry log warning (#124848)

Fix migrate config entry
pull/124856/head
Andrew Jackson 2024-08-29 11:23:04 +01:00 committed by GitHub
parent a4e9e4b23b
commit c4fd1cfc8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -97,10 +97,9 @@ async def async_migrate_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
LOGGER.error("Migration failed with error %s", ex)
return False
entry.minor_version = 2
hass.config_entries.async_update_entry(
entry,
minor_version=2,
unique_id=slugify(construct_mastodon_username(instance, account)),
)