diff --git a/docs/core/platform/significant_change.md b/docs/core/platform/significant_change.md index 2e38a30a..404017bf 100644 --- a/docs/core/platform/significant_change.md +++ b/docs/core/platform/significant_change.md @@ -8,7 +8,7 @@ This support is added by creating a `significant_change.py` platform file with a ```python from typing import Any, Optional -from homeassistant.core import callback +from homeassistant.core import HomeAssistant, callback @callback def async_check_significant_change( @@ -18,7 +18,7 @@ def async_check_significant_change( new_state: str, new_attrs: dict, **kwargs: Any, -) -> Optional[bool] +) -> bool | None: ``` This function is passed a state that was previously considered significant and the new state. It is not just passing the last 2 known states in. The function should return a boolean if it is significant or not, or `None` if the function doesn't know.