1
0
mirror of https://github.com/home-assistant/core.git synced 2025-06-30 09:57:08 +00:00
core/tests/helpers/test_intent.py
2018-02-28 13:39:01 -08:00

13 lines
370 B
Python

"""Tests for the intent helpers."""
from homeassistant.core import State
from homeassistant.helpers import intent
def test_async_match_state():
"""Test async_match_state helper."""
state1 = State('light.kitchen', 'on')
state2 = State('switch.kitchen', 'on')
state = intent.async_match_state(None, 'kitch', [state1, state2])
assert state is state1