Skip to content

Commit

Permalink
fix: Replace deprecated async_get_registry call with async_get
Browse files Browse the repository at this point in the history
  • Loading branch information
MislavMandaric committed Nov 7, 2022
1 parent b1a4f04 commit 05fd8a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/vaillant_vsmart/websockets.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async def websocket_get_schedules(
) -> None:
"""Publish scheduler list data."""

er: EntityRegistry = await hass.helpers.entity_registry.async_get_registry()
er: EntityRegistry = hass.helpers.entity_registry.async_get()

schedule: list[dict] = []
for entry_id in hass.data[DOMAIN].keys():
Expand Down Expand Up @@ -65,7 +65,7 @@ async def websocket_get_schedule_item(
) -> None:
"""Publish scheduler list data."""

er: EntityRegistry = await hass.helpers.entity_registry.async_get_registry()
er: EntityRegistry = hass.helpers.entity_registry.async_get()

for entry_id in hass.data[DOMAIN].keys():
coordinator: VaillantCoordinator = hass.data[DOMAIN][entry_id]
Expand Down

0 comments on commit 05fd8a6

Please sign in to comment.