2022-01-16 19:38:29 +00:00
|
|
|
"""The switch tests for the nexia platform."""
|
|
|
|
from homeassistant.const import STATE_ON
|
2023-02-08 15:48:54 +00:00
|
|
|
from homeassistant.core import HomeAssistant
|
2022-01-16 19:38:29 +00:00
|
|
|
|
|
|
|
from .util import async_init_integration
|
|
|
|
|
|
|
|
|
2023-02-08 15:48:54 +00:00
|
|
|
async def test_hold_switch(hass: HomeAssistant) -> None:
|
2022-01-16 19:38:29 +00:00
|
|
|
"""Test creation of the hold switch."""
|
|
|
|
await async_init_integration(hass)
|
|
|
|
assert hass.states.get("switch.nick_office_hold").state == STATE_ON
|