mirror of https://github.com/home-assistant/core
14 lines
400 B
Python
14 lines
400 B
Python
"""Test ESPHome repairs."""
|
|
|
|
import pytest
|
|
|
|
from homeassistant.components.esphome import repairs
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
|
|
async def test_create_fix_flow_raises_on_unknown_issue_id(hass: HomeAssistant) -> None:
|
|
"""Test reate_fix_flow raises on unknown issue_id."""
|
|
|
|
with pytest.raises(ValueError):
|
|
await repairs.async_create_fix_flow(hass, "no_such_issue", None)
|