1
0
mirror of https://github.com/home-assistant/core.git synced 2026-03-01 06:16:29 +00:00
Files
core/tests/components/sleepiq/test_sensor.py
2026-02-16 17:59:51 +01:00

24 lines
700 B
Python

"""The tests for SleepIQ sensor platform."""
from syrupy.assertion import SnapshotAssertion
from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN
from homeassistant.core import HomeAssistant
from homeassistant.helpers import entity_registry as er
from .conftest import setup_platform
from tests.common import snapshot_platform
async def test_sensors(
hass: HomeAssistant,
entity_registry: er.EntityRegistry,
mock_asyncsleepiq,
snapshot: SnapshotAssertion,
) -> None:
"""Test the SleepIQ sleepnumber for a bed with two sides."""
entry = await setup_platform(hass, SENSOR_DOMAIN)
await snapshot_platform(hass, entity_registry, snapshot, entry.entry_id)