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

Functions

int|float|None _cardinal_to_degrees (str|float|None value)
 
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 Weather state changes.

Function Documentation

◆ _cardinal_to_degrees()

int | float | None homeassistant.components.weather.significant_change._cardinal_to_degrees ( str | float | None  value)
private
Translate a cardinal direction into azimuth angle (degrees).

Definition at line 67 of file significant_change.py.

◆ async_check_significant_change()

bool | None homeassistant.components.weather.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 79 of file significant_change.py.