22 lines
687 B
Python
22 lines
687 B
Python
"""Test the Tessie binary sensor platform."""
|
|
|
|
import pytest
|
|
from syrupy import SnapshotAssertion
|
|
|
|
from homeassistant.const import Platform
|
|
from homeassistant.core import HomeAssistant
|
|
from homeassistant.helpers import entity_registry as er
|
|
|
|
from .common import assert_entities, setup_platform
|
|
|
|
|
|
@pytest.mark.usefixtures("entity_registry_enabled_by_default")
|
|
async def test_binary_sensors(
|
|
hass: HomeAssistant, snapshot: SnapshotAssertion, entity_registry: er.EntityRegistry
|
|
) -> None:
|
|
"""Tests that the binary sensor entities are correct."""
|
|
|
|
entry = await setup_platform(hass, [Platform.BINARY_SENSOR])
|
|
|
|
assert_entities(hass, entry.entry_id, entity_registry, snapshot)
|