* Add better testing to vacuum platform * remove state strings * some of the MR comments * move MockVacuum * remove manifest extra * fix linting * fix other linting * Fix create entity calls * Format * remove create_entity * change to match notify --------- Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
23 lines
530 B
Python
23 lines
530 B
Python
"""Fixtures for Vacuum platform tests."""
|
|
|
|
from collections.abc import Generator
|
|
|
|
import pytest
|
|
|
|
from homeassistant.config_entries import ConfigFlow
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
from tests.common import mock_config_flow, mock_platform
|
|
|
|
|
|
class MockFlow(ConfigFlow):
|
|
"""Test flow."""
|
|
|
|
|
|
@pytest.fixture
|
|
def config_flow_fixture(hass: HomeAssistant) -> Generator[None, None, None]:
|
|
"""Mock config flow."""
|
|
mock_platform(hass, "test.config_flow")
|
|
|
|
with mock_config_flow("test", MockFlow):
|
|
yield
|