mirror of
https://github.com/home-assistant/core.git
synced 2026-05-18 22:40:15 +01:00
27 lines
744 B
Python
27 lines
744 B
Python
"""Test the Zinvolt initialization."""
|
|
|
|
from unittest.mock import AsyncMock
|
|
|
|
from syrupy.assertion import SnapshotAssertion
|
|
|
|
from homeassistant.core import HomeAssistant
|
|
from homeassistant.helpers import device_registry as dr
|
|
|
|
from . import setup_integration
|
|
|
|
from tests.common import MockConfigEntry
|
|
|
|
|
|
async def test_device(
|
|
hass: HomeAssistant,
|
|
device_registry: dr.DeviceRegistry,
|
|
mock_config_entry: MockConfigEntry,
|
|
mock_zinvolt_client: AsyncMock,
|
|
snapshot: SnapshotAssertion,
|
|
) -> None:
|
|
"""Test the Zinvolt device."""
|
|
await setup_integration(hass, mock_config_entry)
|
|
devices = device_registry.devices
|
|
for device in devices.values():
|
|
assert device == snapshot(name=list(device.identifiers)[0][1])
|