mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 22:25:13 +02:00
Update islamic_prayer_times to set ConfigEntry version with async_update_entry (#110194)
This commit is contained in:
@@ -62,10 +62,8 @@ async def async_migrate_entry(hass: HomeAssistant, config_entry: ConfigEntry) ->
|
||||
CONF_LONGITUDE: lon,
|
||||
}
|
||||
unique_id = f"{lat}-{lon}"
|
||||
config_entry.version = 1
|
||||
config_entry.minor_version = 2
|
||||
hass.config_entries.async_update_entry(
|
||||
config_entry, data=new, unique_id=unique_id
|
||||
config_entry, data=new, unique_id=unique_id, version=1, minor_version=2
|
||||
)
|
||||
|
||||
_LOGGER.debug("Migration to version %s successful", config_entry.version)
|
||||
|
Reference in New Issue
Block a user