1 """Helper to test significant Remote state changes."""
3 from __future__
import annotations
9 from .
import ATTR_CURRENT_ACTIVITY
21 """Test if state significantly changed."""
22 if old_state != new_state:
25 if old_attrs.get(ATTR_CURRENT_ACTIVITY) != new_attrs.get(ATTR_CURRENT_ACTIVITY):
bool|None async_check_significant_change(HomeAssistant hass, str old_state, dict old_attrs, str new_state, dict new_attrs, **Any kwargs)