Home Assistant Unofficial Reference
2024.12.1
significant_change.py
Go to the documentation of this file.
1
"""Helper to test significant Select state changes."""
2
3
from
__future__
import
annotations
4
5
from
typing
import
Any
6
7
from
homeassistant.core
import
HomeAssistant, callback
8
9
10
@callback
11
def
async_check_significant_change
(
12
hass: HomeAssistant,
13
old_state: str,
14
old_attrs: dict,
15
new_state: str,
16
new_attrs: dict,
17
**kwargs: Any,
18
) -> bool:
19
"""Test if state significantly changed."""
20
return
old_state != new_state
homeassistant.components.select.significant_change.async_check_significant_change
bool async_check_significant_change(HomeAssistant hass, str old_state, dict old_attrs, str new_state, dict new_attrs, **Any kwargs)
Definition:
significant_change.py:18
homeassistant.core
Definition:
core.py:1
core
homeassistant
components
select
significant_change.py
Generated by
1.9.1