2023-04-17 17:09:11 +00:00
|
|
|
"""Test VoIP select."""
|
2024-03-08 13:44:56 +00:00
|
|
|
|
2023-04-17 17:09:11 +00:00
|
|
|
from homeassistant.components.voip.devices import VoIPDevice
|
|
|
|
from homeassistant.config_entries import ConfigEntry
|
|
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
|
|
|
|
|
|
|
|
async def test_pipeline_select(
|
|
|
|
hass: HomeAssistant,
|
|
|
|
config_entry: ConfigEntry,
|
|
|
|
voip_device: VoIPDevice,
|
|
|
|
) -> None:
|
|
|
|
"""Test pipeline select.
|
|
|
|
|
|
|
|
Functionality is tested in assist_pipeline/test_select.py.
|
|
|
|
This test is only to ensure it is set up.
|
|
|
|
"""
|
2024-09-26 18:38:51 +00:00
|
|
|
state = hass.states.get("select.192_168_1_210_assistant")
|
2023-04-17 17:09:11 +00:00
|
|
|
assert state is not None
|
|
|
|
assert state.state == "preferred"
|
2023-06-24 03:28:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
async def test_vad_sensitivity_select(
|
|
|
|
hass: HomeAssistant,
|
|
|
|
config_entry: ConfigEntry,
|
|
|
|
voip_device: VoIPDevice,
|
|
|
|
) -> None:
|
|
|
|
"""Test VAD sensitivity select.
|
|
|
|
|
|
|
|
Functionality is tested in assist_pipeline/test_select.py.
|
|
|
|
This test is only to ensure it is set up.
|
|
|
|
"""
|
2023-06-26 20:47:32 +00:00
|
|
|
state = hass.states.get("select.192_168_1_210_finished_speaking_detection")
|
2023-06-24 03:28:13 +00:00
|
|
|
assert state is not None
|
|
|
|
assert state.state == "default"
|