mirror of
https://github.com/home-assistant/core.git
synced 2025-12-26 05:57:01 +00:00
Use PEP 695 for function annotations (2) (#117659)
This commit is contained in:
@@ -68,9 +68,6 @@ from .typing import ConfigType, TemplateVarsType
|
||||
if TYPE_CHECKING:
|
||||
from .entity import Entity
|
||||
|
||||
_EntityT = TypeVar("_EntityT", bound=Entity)
|
||||
|
||||
|
||||
CONF_SERVICE_ENTITY_ID = "entity_id"
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
@@ -434,7 +431,7 @@ def extract_entity_ids(
|
||||
|
||||
|
||||
@bind_hass
|
||||
async def async_extract_entities(
|
||||
async def async_extract_entities[_EntityT: Entity](
|
||||
hass: HomeAssistant,
|
||||
entities: Iterable[_EntityT],
|
||||
service_call: ServiceCall,
|
||||
|
||||
Reference in New Issue
Block a user