Repackage ZHA component (#19989)
* move files * rename files * rename files * move files * relative import * update coveragerc
This commit is contained in:
parent
7676b3fbe8
commit
ba21608042
7 changed files with 7 additions and 2 deletions
|
@ -424,8 +424,13 @@ omit =
|
||||||
homeassistant/components/*/zabbix.py
|
homeassistant/components/*/zabbix.py
|
||||||
|
|
||||||
homeassistant/components/zha/__init__.py
|
homeassistant/components/zha/__init__.py
|
||||||
|
homeassistant/components/zha/binary_sensor.py
|
||||||
homeassistant/components/zha/const.py
|
homeassistant/components/zha/const.py
|
||||||
homeassistant/components/zha/event.py
|
homeassistant/components/zha/event.py
|
||||||
|
homeassistant/components/zha/fan.py
|
||||||
|
homeassistant/components/zha/light.py
|
||||||
|
homeassistant/components/zha/sensor.py
|
||||||
|
homeassistant/components/zha/switch.py
|
||||||
homeassistant/components/zha/api.py
|
homeassistant/components/zha/api.py
|
||||||
homeassistant/components/zha/entities/*
|
homeassistant/components/zha/entities/*
|
||||||
homeassistant/components/zha/helpers.py
|
homeassistant/components/zha/helpers.py
|
||||||
|
|
|
@ -102,7 +102,7 @@ def populate_data():
|
||||||
"""
|
"""
|
||||||
from zigpy import zcl, quirks
|
from zigpy import zcl, quirks
|
||||||
from zigpy.profiles import PROFILES, zha, zll
|
from zigpy.profiles import PROFILES, zha, zll
|
||||||
from homeassistant.components.sensor import zha as sensor_zha
|
from .sensor import RelativeHumiditySensor
|
||||||
|
|
||||||
if zha.PROFILE_ID not in DEVICE_CLASS:
|
if zha.PROFILE_ID not in DEVICE_CLASS:
|
||||||
DEVICE_CLASS[zha.PROFILE_ID] = {}
|
DEVICE_CLASS[zha.PROFILE_ID] = {}
|
||||||
|
@ -162,7 +162,7 @@ def populate_data():
|
||||||
# A map of device/cluster to component/sub-component
|
# A map of device/cluster to component/sub-component
|
||||||
CUSTOM_CLUSTER_MAPPINGS.update({
|
CUSTOM_CLUSTER_MAPPINGS.update({
|
||||||
(quirks.smartthings.SmartthingsTemperatureHumiditySensor, 64581):
|
(quirks.smartthings.SmartthingsTemperatureHumiditySensor, 64581):
|
||||||
('sensor', sensor_zha.RelativeHumiditySensor)
|
('sensor', RelativeHumiditySensor)
|
||||||
})
|
})
|
||||||
|
|
||||||
# A map of hass components to all Zigbee clusters it could use
|
# A map of hass components to all Zigbee clusters it could use
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue