Use more efficient async_progress_by_handler call in async_start_reauth (#81757)

This commit is contained in:
J. Nick Koston 2022-11-08 04:20:54 -06:00 committed by GitHub
parent c585817e67
commit 4d1fa42a3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -662,7 +662,7 @@ class ConfigEntry:
"""Start a reauth flow."""
if any(
flow
for flow in hass.config_entries.flow.async_progress()
for flow in hass.config_entries.flow.async_progress_by_handler(self.domain)
if flow["context"].get("source") == SOURCE_REAUTH
and flow["context"].get("entry_id") == self.entry_id
):