Skip to content

Commit 6f16069

Browse files
authored
Update requirements and remove HA imports (#100)
* update requirements and remove HA imports * test requirements
1 parent f2d5bf6 commit 6f16069

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

requirements_test_all.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ pytest-timeout==1.3.3
1818
pytest==4.4.1
1919
requests_mock==1.5.2
2020

21-
zigpy-homeassistant==0.5.0
21+
zigpy-homeassistant==0.6.1
2222
homeassistant

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ def readme():
2424
keywords='zha quirks homeassistant hass',
2525
packages=find_packages(exclude=['*.tests']),
2626
python_requires='>=3',
27+
install_requires=[
28+
'zigpy-homeassistant>=0.6.1'
29+
],
2730
tests_require=[
2831
'pytest',
2932
]

zhaquirks/xiaomi/aqara/cube_aqgl01.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""Xiaomi aqara magic cube device."""
22
import logging
33

4-
import homeassistant.components.zha.const as zha_const
54
from zigpy import quirks
65
from zigpy.profiles import zha
76
from zigpy.quirks.xiaomi import AqaraMagicCubeSensor
@@ -98,11 +97,6 @@
9897

9998
_LOGGER = logging.getLogger(__name__)
10099

101-
zha_const.SINGLE_INPUT_CLUSTER_DEVICE_CLASS.update({
102-
MultistateInput: 'sensor',
103-
AnalogInput: 'sensor'
104-
})
105-
106100

107101
def extend_dict(dictionary, value, ranges):
108102
"""Extend a dict."""

0 commit comments

Comments
 (0)