Undefined sentinel changes
As of Home Assistant Core 2026.12, the UNDEFINED and UndefinedType helpers are deprecated in favor of just Undefined.
Python
# old
from homeassistant.helpers.typing import UNDEFINED, UndefinedType
def some_function(
variable: str | UndefinedType | None = UNDEFINED,
) -> None:
...Python
# new
from homeassistant.helpers.typing import Undefined
def some_function(
variable: str | Undefined | None = Undefined,
) -> None:
...