"""Test the V2C sensor platform.""" from unittest.mock import AsyncMock, patch from syrupy import SnapshotAssertion from homeassistant.const import Platform from homeassistant.core import HomeAssistant from homeassistant.helpers import entity_registry as er from . import init_integration from tests.common import MockConfigEntry, snapshot_platform async def test_sensor( hass: HomeAssistant, entity_registry: er.EntityRegistry, snapshot: SnapshotAssertion, mock_v2c_client: AsyncMock, mock_config_entry: MockConfigEntry, entity_registry_enabled_by_default: None, ) -> None: """Test states of the sensor.""" with patch("homeassistant.components.v2c.PLATFORMS", [Platform.SENSOR]): await init_integration(hass, mock_config_entry) await snapshot_platform(hass, entity_registry, snapshot, mock_config_entry.entry_id)