From 13334545956605968d721f96dfa341e20f8367c6 Mon Sep 17 00:00:00 2001 From: Emory Penney Date: Fri, 3 Jun 2022 13:51:07 -0700 Subject: [PATCH] [#387] Deprecated: async_get_registry --- custom_components/wyzeapi/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/wyzeapi/__init__.py b/custom_components/wyzeapi/__init__.py index c7fca49a..e3acabe3 100644 --- a/custom_components/wyzeapi/__init__.py +++ b/custom_components/wyzeapi/__init__.py @@ -127,7 +127,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b if hms_id is not None: mac_addresses.add(hms_id) - device_registry = await dr.async_get_registry(hass) + device_registry = dr.async_get(hass) for device in dr.async_entries_for_config_entry( device_registry, config_entry.entry_id ):