2024-01-18 13:37:43 +00:00
|
|
|
"""Tests for the Flexit Nordic (BACnet) climate entity."""
|
2024-03-08 13:50:04 +00:00
|
|
|
|
2024-01-18 13:37:43 +00:00
|
|
|
from unittest.mock import AsyncMock
|
|
|
|
|
|
|
|
from syrupy.assertion import SnapshotAssertion
|
|
|
|
|
|
|
|
from homeassistant.const import Platform
|
|
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
import homeassistant.helpers.entity_registry as er
|
|
|
|
|
2024-05-14 13:10:21 +00:00
|
|
|
from tests.common import MockConfigEntry, snapshot_platform
|
2024-01-18 13:37:43 +00:00
|
|
|
from tests.components.flexit_bacnet import setup_with_selected_platforms
|
|
|
|
|
|
|
|
|
|
|
|
async def test_climate_entity(
|
|
|
|
hass: HomeAssistant,
|
|
|
|
mock_flexit_bacnet: AsyncMock,
|
|
|
|
mock_config_entry: MockConfigEntry,
|
|
|
|
snapshot: SnapshotAssertion,
|
|
|
|
entity_registry: er.EntityRegistry,
|
|
|
|
) -> None:
|
|
|
|
"""Test the initial parameters."""
|
|
|
|
await setup_with_selected_platforms(hass, mock_config_entry, [Platform.CLIMATE])
|
|
|
|
|
2024-05-14 13:10:21 +00:00
|
|
|
await snapshot_platform(hass, entity_registry, snapshot, mock_config_entry.entry_id)
|