Skip to content

Commit 9707cf9

Browse files
committed
Fix depracated async_get_registry() #28
1 parent d3f928b commit 9707cf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/wemportal/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
4343
async def migrate_unique_ids(
4444
hass: HomeAssistant, config_entry: ConfigEntry, coordinator
4545
):
46-
er = await entity_registry.async_get_registry(hass)
46+
er = await entity_registry.async_get(hass)
4747
# Do migration for first device if we have multiple
4848
device_id = list(coordinator.data.keys())[0]
4949
data = coordinator.data[device_id]

0 commit comments

Comments
 (0)