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 Franck Nijhof
parent 1f878433ac
commit 815249eaeb

View File

@@ -662,7 +662,7 @@ class ConfigEntry:
"""Start a reauth flow.""" """Start a reauth flow."""
if any( if any(
flow 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 if flow["context"].get("source") == SOURCE_REAUTH
and flow["context"].get("entry_id") == self.entry_id and flow["context"].get("entry_id") == self.entry_id
): ):