1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Add test for start_reauth_flow test helper (#127093)

* Improve docstring in start_reauth_flow

* Add test

* Make private

* Make fully private until actually needed
This commit is contained in:
epenet
2024-09-30 14:28:13 +02:00
committed by GitHub
parent 730012edfd
commit 4bb768f39c
2 changed files with 63 additions and 1 deletions

View File

@@ -1063,7 +1063,10 @@ class MockConfigEntry(config_entries.ConfigEntry):
context: dict[str, Any] | None = None,
data: dict[str, Any] | None = None,
) -> ConfigFlowResult:
"""Start a reauthentication flow."""
"""Start a reauthentication flow for a config entry.
This helper method should be aligned with `ConfigEntry._async_init_reauth`.
"""
return await hass.config_entries.flow.async_init(
self.domain,
context={