mirror of
https://github.com/home-assistant/core.git
synced 2026-11-29 17:17:35 -04:00
Remove ZHA establish device mappings function (#30423)
* remove establish_device_mappings * inline init
This commit is contained in:
committed by
Alexei Chetroi
parent
4c6e10a988
commit
ef8eefc7a0
@@ -9,7 +9,6 @@ from zigpy.application import ControllerApplication
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.components.zha.core.const import COMPONENTS, DATA_ZHA, DOMAIN
|
||||
from homeassistant.components.zha.core.gateway import ZHAGateway
|
||||
from homeassistant.components.zha.core.registries import establish_device_mappings
|
||||
from homeassistant.components.zha.core.store import async_get_registry
|
||||
from homeassistant.helpers.device_registry import async_get_registry as get_dev_reg
|
||||
|
||||
@@ -41,7 +40,6 @@ async def zha_gateway_fixture(hass, config_entry):
|
||||
Create a ZHAGateway object that can be used to interact with as if we
|
||||
had a real zigbee network running.
|
||||
"""
|
||||
establish_device_mappings()
|
||||
for component in COMPONENTS:
|
||||
hass.data[DATA_ZHA][component] = hass.data[DATA_ZHA].get(component, {})
|
||||
zha_storage = await async_get_registry(hass)
|
||||
|
||||
Reference in New Issue
Block a user