mirror of
https://github.com/home-assistant/core.git
synced 2026-12-02 11:33:11 -04:00
Fix template cover closed tilt positions entity type (#195852)
This commit is contained in:
@@ -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."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user