init home-assistant
This commit is contained in:
21
home-assistant/tests/components/tessie/test_binary_sensor.py
Normal file
21
home-assistant/tests/components/tessie/test_binary_sensor.py
Normal file
@@ -0,0 +1,21 @@
|
||||
"""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)
|
||||
Reference in New Issue
Block a user