1
0
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:
Paulus Schoutsen
2020-05-04 11:23:12 -07:00
committed by GitHub
parent b3e637ca7a
commit e54e9279e3
8 changed files with 72 additions and 37 deletions

View File

@@ -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."""