Files
project-work/home-assistant/tests/components/elmax/test_alarm_control_panel.py
2026-11-19 15:15:32 -05:00

32 lines
891 B
Python

"""Tests for the Elmax alarm control panels."""
from datetime import timedelta
from unittest.mock import patch
from syrupy import SnapshotAssertion
from homeassistant.components.elmax import POLLING_SECONDS
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 snapshot_platform
WAIT = timedelta(seconds=POLLING_SECONDS)
async def test_alarm_control_panels(
hass: HomeAssistant,
entity_registry: er.EntityRegistry,
snapshot: SnapshotAssertion,
) -> None:
"""Test alarm control panels."""
with patch(
"homeassistant.components.elmax.ELMAX_PLATFORMS", [Platform.ALARM_CONTROL_PANEL]
):
entry = await init_integration(hass)
await snapshot_platform(hass, entity_registry, snapshot, entry.entry_id)