mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Refactor ZHA listeners into channels (#21196)
* refactor listeners to channels * update coveragerc
This commit is contained in:
committed by
Paulus Schoutsen
parent
fe4a2b5b31
commit
3be8178035
@@ -7,8 +7,8 @@ from homeassistant.components.zha.core.const import (
|
||||
)
|
||||
from homeassistant.components.zha.core.gateway import ZHAGateway
|
||||
from homeassistant.components.zha.core.gateway import establish_device_mappings
|
||||
from homeassistant.components.zha.core.listeners \
|
||||
import populate_listener_registry
|
||||
from homeassistant.components.zha.core.channels.registry \
|
||||
import populate_channel_registry
|
||||
from .common import async_setup_entry
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ def zha_gateway_fixture(hass):
|
||||
Create a ZHAGateway object that can be used to interact with as if we
|
||||
had a real zigbee network running.
|
||||
"""
|
||||
populate_listener_registry()
|
||||
populate_channel_registry()
|
||||
establish_device_mappings()
|
||||
for component in COMPONENTS:
|
||||
hass.data[DATA_ZHA][component] = (
|
||||
|
||||
Reference in New Issue
Block a user