Skip to content

Commit

Permalink
Add support of new Xiaomi Aqara Curtain models (curtain.aq2, curtain.…
Browse files Browse the repository at this point in the history
…hagl04) (Closes: #25711)
  • Loading branch information
syssi committed Aug 18, 2019
1 parent a2589f5 commit 3d47ef2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/xiaomi_aqara/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/xiaomi_aqara/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 3d47ef2

Please sign in to comment.