Refactor ZHA listeners into channels (#21196)

* refactor listeners to channels

* update coveragerc
This commit is contained in:
David F. Mulcahey 2019-02-19 12:58:22 -05:00 committed by Paulus Schoutsen
parent fe4a2b5b31
commit 3be8178035
28 changed files with 1037 additions and 899 deletions

View file

@ -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] = (