mirror of https://github.com/home-assistant/core
14 lines
494 B
Python
14 lines
494 B
Python
"""Test the sensor significant change platform."""
|
|
|
|
from homeassistant.components.switch.significant_change import (
|
|
async_check_significant_change,
|
|
)
|
|
|
|
|
|
async def test_significant_change() -> None:
|
|
"""Detect Switch significant change."""
|
|
attrs = {}
|
|
assert not async_check_significant_change(None, "on", attrs, "on", attrs)
|
|
assert not async_check_significant_change(None, "off", attrs, "off", attrs)
|
|
assert async_check_significant_change(None, "on", attrs, "off", attrs)
|