From e3d80bac7869a19aa575b911f86530a9ef708eb8 Mon Sep 17 00:00:00 2001 From: Martin Hjelmare Date: Tue, 1 Dec 2026 18:01:59 +0100 Subject: [PATCH] Fix template cover closed tilt positions entity type (#195852) --- homeassistant/components/template/cover.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/homeassistant/components/template/cover.py b/homeassistant/components/template/cover.py index 7d0a3144793e..450607adc388 100644 --- a/homeassistant/components/template/cover.py +++ b/homeassistant/components/template/cover.py @@ -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."""