mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00:00
Update islamic_prayer_times to set ConfigEntry version with async_update_entry (#110194)
This commit is contained in:
parent
087e52af6e
commit
118712d38d
@ -62,10 +62,8 @@ async def async_migrate_entry(hass: HomeAssistant, config_entry: ConfigEntry) ->
|
|||||||
CONF_LONGITUDE: lon,
|
CONF_LONGITUDE: lon,
|
||||||
}
|
}
|
||||||
unique_id = f"{lat}-{lon}"
|
unique_id = f"{lat}-{lon}"
|
||||||
config_entry.version = 1
|
|
||||||
config_entry.minor_version = 2
|
|
||||||
hass.config_entries.async_update_entry(
|
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)
|
_LOGGER.debug("Migration to version %s successful", config_entry.version)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user