From 75a668c12bf7ddba6fe6b73d229b17797a5ade3f Mon Sep 17 00:00:00 2001 From: Marc Date: Mon, 17 Jul 2023 22:10:17 +0200 Subject: [PATCH] Add missing argument to async_get(). Fixes #44 --- custom_components/teufel_raumfeld/media_player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/teufel_raumfeld/media_player.py b/custom_components/teufel_raumfeld/media_player.py index 1e7e24c..72d983b 100644 --- a/custom_components/teufel_raumfeld/media_player.py +++ b/custom_components/teufel_raumfeld/media_player.py @@ -130,7 +130,7 @@ async def async_setup_entry(hass, config_entry, async_add_devices): raumfeld = hass.data[DOMAIN][config_entry.entry_id] room_names = raumfeld.get_rooms() room_groups = raumfeld.get_groups() - entity_registry = await hass.helpers.entity_registry.async_get() + entity_registry = hass.helpers.entity_registry.async_get(hass) entity_entries = hass.helpers.entity_registry.async_entries_for_config_entry( entity_registry, config_entry.entry_id )