1
mirror of https://github.com/home-assistant/core synced 2024-09-18 19:55:20 +02:00
ha-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