1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Improve registry store data typing (#115066)

This commit is contained in:
Marc Mueller
2024-04-07 02:34:49 +02:00
committed by GitHub
parent a0936902c2
commit cb9352110c
6 changed files with 104 additions and 54 deletions

View File

@@ -551,7 +551,7 @@ class ActiveDeviceRegistryItems(DeviceRegistryItems[DeviceEntry]):
]
class DeviceRegistry(BaseRegistry):
class DeviceRegistry(BaseRegistry[dict[str, list[dict[str, Any]]]]):
"""Class to hold a registry of devices."""
devices: ActiveDeviceRegistryItems