Home Assistant Unofficial Reference 2024.12.1
repairs.py
Go to the documentation of this file.
1 """Repairs implementation for the esphome integration."""
2 
3 from __future__ import annotations
4 
6  AssistInProgressDeprecatedRepairFlow,
7 )
8 from homeassistant.components.repairs import RepairsFlow
9 from homeassistant.core import HomeAssistant
10 
11 
13  hass: HomeAssistant,
14  issue_id: str,
15  data: dict[str, str | int | float | None] | None,
16 ) -> RepairsFlow:
17  """Create flow."""
18  if issue_id.startswith("assist_in_progress_deprecated"):
20  # If ESPHome adds confirm-only repairs in the future, this should be changed
21  # to return a ConfirmRepairFlow instead of raising a ValueError
22  raise ValueError(f"unknown repair {issue_id}")
RepairsFlow async_create_fix_flow(HomeAssistant hass, str issue_id, dict[str, str|int|float|None]|None data)
Definition: repairs.py:16