Migrate landisgyr_heat_meter to use async_update_entry to alter config entries (#110314)

This commit is contained in:
J. Nick Koston 2024-02-12 04:18:54 -06:00 committed by GitHub
parent b5d9f275b9
commit aa67eb7f46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -49,7 +49,7 @@ async def async_migrate_entry(hass: HomeAssistant, config_entry: ConfigEntry) ->
# Removing domain name and config entry id from entity unique id's, replacing it with device number
if config_entry.version == 1:
config_entry.version = 2
hass.config_entries.async_update_entry(config_entry, version=2)
device_number = config_entry.data["device_number"]