Skip to content

Commit

Permalink
Merge pull request #206 from htvekov/patch-2
Browse files Browse the repository at this point in the history
Update aqara.py
  • Loading branch information
xaviml authored Dec 22, 2020
2 parents b401300 + 30fb6c4 commit 9ea8f8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/controllerx/cx_devices/aqara.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class WXKG01LMLightController(LightController):
"""
Different states reported from the controller:
single, double, triple, quadruple,
many, long, long_release
many, hold, release
"""

def get_z2m_actions_mapping(self) -> TypeActionsMapping:
Expand All @@ -61,8 +61,8 @@ def get_z2m_actions_mapping(self) -> TypeActionsMapping:
"triple": Light.ON_MIN_BRIGHTNESS,
"quadruple": Light.SET_HALF_BRIGHTNESS,
# "many": "", # Nothing
"long": Light.HOLD_BRIGHTNESS_TOGGLE,
"long_release": Light.RELEASE,
"hold": Light.HOLD_BRIGHTNESS_TOGGLE,
"release": Light.RELEASE,
}

def get_deconz_actions_mapping(self) -> TypeActionsMapping:
Expand Down

0 comments on commit 9ea8f8f

Please sign in to comment.