From 0add6bced127f69e3eef224fd89dfc9e73a53559 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Mon, 3 Jul 2023 21:48:17 +0800 Subject: [PATCH] config_flow: async_get is not awaitable async_get is apparently has the async prefix because it is a callback, not because it is awaitable. Not sure why this only stopped working in HA 2023.6, but there appear to have been some dropped deprecations of older truly async functions for which this was the replacement, so it seems some compatibility shim has been removed. Issue #7 --- custom_components/metlink/config_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/metlink/config_flow.py b/custom_components/metlink/config_flow.py index 7070f20..812a5ea 100644 --- a/custom_components/metlink/config_flow.py +++ b/custom_components/metlink/config_flow.py @@ -141,7 +141,7 @@ async def async_step_init( self, user_input: Dict[str, Any] = None ) -> Dict[str, Any]: """Manage the options for the component.""" - entity_registry = await async_get(self.hass) + entity_registry = async_get(self.hass) entries = async_entries_for_config_entry( entity_registry, self.config_entry.entry_id )