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