1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-19 23:10:15 +01:00
Files
core/tests/components/evohome/test_init.py
T
David Bonnes bb2c2d161a Rename an evohome test fixture (#126425)
rename a fixture
2024-09-22 16:50:08 +02:00

31 lines
810 B
Python

"""The tests for evohome."""
from __future__ import annotations
from freezegun.api import FrozenDateTimeFactory
import pytest
from syrupy import SnapshotAssertion
from homeassistant.core import HomeAssistant
from .conftest import setup_evohome
from .const import TEST_INSTALLS
@pytest.mark.parametrize("install", TEST_INSTALLS)
async def test_entities(
hass: HomeAssistant,
config: dict[str, str],
install: str,
snapshot: SnapshotAssertion,
freezer: FrozenDateTimeFactory,
) -> None:
"""Test entities and state after setup of a Honeywell TCC-compatible system."""
# some extended state attrs are relative the current time
freezer.move_to("2024-07-10 12:00:00+00:00")
await setup_evohome(hass, config, install=install)
assert hass.states.async_all() == snapshot