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."""