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:
@@ -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={
|
||||
|
||||
Reference in New Issue
Block a user