mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Migrate landisgyr_heat_meter to use async_update_entry to alter config entries (#110314)
This commit is contained in:
parent
b5d9f275b9
commit
aa67eb7f46
@ -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
|
# Removing domain name and config entry id from entity unique id's, replacing it with device number
|
||||||
if config_entry.version == 1:
|
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"]
|
device_number = config_entry.data["device_number"]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user