1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-28 11:16:40 +01:00
Files
core/tests/components/zeversolar/test_sensor.py

28 lines
735 B
Python

"""Test the sensor classes."""
from unittest.mock import patch
from syrupy.assertion import SnapshotAssertion
from homeassistant.const import Platform
from homeassistant.core import HomeAssistant
from homeassistant.helpers import entity_registry as er
from tests.common import MockConfigEntry, snapshot_platform
async def test_sensors(
hass: HomeAssistant,
entity_registry: er.EntityRegistry,
snapshot: SnapshotAssertion,
init_integration: MockConfigEntry,
) -> None:
"""Test sensors."""
with patch(
"homeassistant.components.zeversolar.PLATFORMS",
[Platform.SENSOR],
):
await snapshot_platform(
hass, entity_registry, snapshot, init_integration.entry_id
)