mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Extract instance ID helper from updater (#35043)
This commit is contained in:
@@ -7,7 +7,6 @@ import uuid
|
||||
import attr
|
||||
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.loader import bind_hass
|
||||
|
||||
from .singleton import singleton
|
||||
from .typing import HomeAssistantType
|
||||
@@ -367,7 +366,6 @@ class DeviceRegistry:
|
||||
self._async_update_device(dev_id, area_id=None)
|
||||
|
||||
|
||||
@bind_hass
|
||||
@singleton(DATA_REGISTRY)
|
||||
async def async_get_registry(hass: HomeAssistantType) -> DeviceRegistry:
|
||||
"""Create entity registry."""
|
||||
|
||||
Reference in New Issue
Block a user