1
0
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:
Marc Mueller
2024-05-18 11:44:39 +02:00
committed by GitHub
parent 4cf0a3f154
commit 900b6211ef
10 changed files with 30 additions and 73 deletions

View File

@@ -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,