mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
Complete some incomplete type hints in helpers (#25953)
This commit is contained in:
committed by
Paulus Schoutsen
parent
3525728abc
commit
aa508b5106
@@ -24,7 +24,7 @@ from homeassistant.util.yaml import load_yaml
|
||||
from .typing import HomeAssistantType
|
||||
|
||||
|
||||
# mypy: allow-incomplete-defs, allow-untyped-calls, allow-untyped-defs
|
||||
# mypy: allow-untyped-calls, allow-untyped-defs
|
||||
# mypy: no-check-untyped-defs, no-warn-return-any
|
||||
|
||||
PATH_REGISTRY = "entity_registry.yaml"
|
||||
@@ -91,7 +91,9 @@ class EntityRegistry:
|
||||
return self.entities.get(entity_id)
|
||||
|
||||
@callback
|
||||
def async_get_entity_id(self, domain: str, platform: str, unique_id: str):
|
||||
def async_get_entity_id(
|
||||
self, domain: str, platform: str, unique_id: str
|
||||
) -> Optional[str]:
|
||||
"""Check if an entity_id is currently registered."""
|
||||
for entity in self.entities.values():
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user