Add support of new Xiaomi Aqara Curtain models (#25942)
* Add support of new Xiaomi Aqara Curtain models (curtain.aq2, curtain.hagl04) (Closes: #25711) * Fix requirements_allpull/26043/head
parent
ef8bc78c53
commit
2a39d1209c
|
@ -19,7 +19,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
|||
for (_, gateway) in hass.data[PY_XIAOMI_GATEWAY].gateways.items():
|
||||
for device in gateway.devices["cover"]:
|
||||
model = device["model"]
|
||||
if model == "curtain":
|
||||
if model in ["curtain", "curtain.aq2", "curtain.hagl04"]:
|
||||
if "proto" not in device or int(device["proto"][0:1]) == 1:
|
||||
data_key = DATA_KEY_PROTO_V1
|
||||
else:
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"name": "Xiaomi aqara",
|
||||
"documentation": "https://www.home-assistant.io/components/xiaomi_aqara",
|
||||
"requirements": [
|
||||
"PyXiaomiGateway==0.12.3"
|
||||
"PyXiaomiGateway==0.12.4"
|
||||
],
|
||||
"dependencies": [],
|
||||
"codeowners": [
|
||||
|
|
|
@ -75,7 +75,7 @@ PyRMVtransport==0.1.3
|
|||
PyTransportNSW==0.1.1
|
||||
|
||||
# homeassistant.components.xiaomi_aqara
|
||||
PyXiaomiGateway==0.12.3
|
||||
PyXiaomiGateway==0.12.4
|
||||
|
||||
# homeassistant.components.mcp23017
|
||||
# homeassistant.components.rpi_gpio
|
||||
|
|
Loading…
Reference in New Issue