* Add cloud tts entity * Test test_login_view_missing_entity * Fix pipeline iteration for migration * Update tests * Make migration more strict * Fix docstring
16 lines
535 B
Python
16 lines
535 B
Python
"""Test the cloud assist pipeline."""
|
|
import pytest
|
|
|
|
from homeassistant.components.cloud.assist_pipeline import (
|
|
async_migrate_cloud_pipeline_engine,
|
|
)
|
|
from homeassistant.const import Platform
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
|
|
async def test_migrate_pipeline_invalid_platform(hass: HomeAssistant) -> None:
|
|
"""Test migrate pipeline with invalid platform."""
|
|
with pytest.raises(ValueError):
|
|
await async_migrate_cloud_pipeline_engine(
|
|
hass, Platform.BINARY_SENSOR, "test-engine-id"
|
|
)
|