Refactor ZHA listeners into channels (#21196)
* refactor listeners to channels * update coveragerc
This commit is contained in:
parent
fe4a2b5b31
commit
3be8178035
28 changed files with 1037 additions and 899 deletions
|
@ -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] = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue