mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 22:37:11 +00:00
Update swiss_public_transport to set ConfigEntry version with async_update_entry (#110197)
This commit is contained in:
parent
991bef7ea0
commit
6b913546b9
@ -107,8 +107,9 @@ async def async_migrate_entry(
|
||||
)
|
||||
|
||||
# Set a valid unique id for config entries
|
||||
config_entry.minor_version = 2
|
||||
hass.config_entries.async_update_entry(config_entry, unique_id=new_unique_id)
|
||||
hass.config_entries.async_update_entry(
|
||||
config_entry, unique_id=new_unique_id, minor_version=2
|
||||
)
|
||||
|
||||
_LOGGER.debug(
|
||||
"Migration to version %s.%s successful",
|
||||
|
Loading…
x
Reference in New Issue
Block a user