mirror of
https://github.com/home-assistant/core.git
synced 2025-11-15 22:10:09 +00:00
Complete some incomplete type hints in helpers (#25953)
This commit is contained in:
committed by
Paulus Schoutsen
parent
3525728abc
commit
aa508b5106
@@ -13,7 +13,7 @@ from homeassistant.loader import bind_hass
|
||||
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
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
@@ -84,7 +84,9 @@ class DeviceRegistry:
|
||||
return self.devices.get(device_id)
|
||||
|
||||
@callback
|
||||
def async_get_device(self, identifiers: set, connections: set):
|
||||
def async_get_device(
|
||||
self, identifiers: set, connections: set
|
||||
) -> Optional[DeviceEntry]:
|
||||
"""Check if device is registered."""
|
||||
for device in self.devices.values():
|
||||
if any(iden in device.identifiers for iden in identifiers) or any(
|
||||
|
||||
Reference in New Issue
Block a user