Fix template cover closed tilt positions entity type (#195852)

This commit is contained in:
Martin Hjelmare
2026-12-01 18:01:59 +01:00
committed by GitHub
parent 4ca46aa52f
commit e3d80bac78
+1 -2
View File
@@ -23,7 +23,6 @@ from homeassistant.const import CONF_DEVICE_CLASS, CONF_NAME, CONF_STATE, Platfo
from homeassistant.core import HomeAssistant, callback
from homeassistant.exceptions import TemplateError
from homeassistant.helpers import config_validation as cv
from homeassistant.helpers.entity import Entity
from homeassistant.helpers.entity_platform import (
AddConfigEntryEntitiesCallback,
AddEntitiesCallback,
@@ -200,7 +199,7 @@ def async_create_preview_cover(
def closed_tilt_positions(
entity: Entity, attribute: str
entity: AbstractTemplateEntity, attribute: str
) -> Callable[[Any], list[int] | None]:
"""Convert the result to a sorted list of the closed tilt positions 0 and 100."""