Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.switch.significant_change Namespace Reference

Functions

bool|None async_check_significant_change (HomeAssistant hass, str old_state, dict old_attrs, str new_state, dict new_attrs, **Any kwargs)
 

Detailed Description

Helper to test significant Switch state changes.

Function Documentation

◆ async_check_significant_change()

bool | None homeassistant.components.switch.significant_change.async_check_significant_change ( HomeAssistant  hass,
str  old_state,
dict  old_attrs,
str  new_state,
dict  new_attrs,
**Any  kwargs 
)
Test if state significantly changed.

Definition at line 11 of file significant_change.py.