Skip to content

Commit 0add6bc

Browse files
committed
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
1 parent 18ff4a0 commit 0add6bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/metlink/config_flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ async def async_step_init(
141141
self, user_input: Dict[str, Any] = None
142142
) -> Dict[str, Any]:
143143
"""Manage the options for the component."""
144-
entity_registry = await async_get(self.hass)
144+
entity_registry = async_get(self.hass)
145145
entries = async_entries_for_config_entry(
146146
entity_registry, self.config_entry.entry_id
147147
)

0 commit comments

Comments
 (0)