Update islamic_prayer_times to set ConfigEntry version with async_update_entry (#110194)

This commit is contained in:
J. Nick Koston 2024-02-10 12:52:45 -06:00 committed by GitHub
parent 087e52af6e
commit 118712d38d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)