Skip to content

Commit

Permalink
config_flow: async_get is not awaitable
Browse files Browse the repository at this point in the history
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
  • Loading branch information
make-all committed Jul 3, 2023
1 parent 18ff4a0 commit 0add6bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/metlink/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit 0add6bc

Please sign in to comment.