Skip to content

Commit

Permalink
Merge pull request #147 from htvekov/patch-1
Browse files Browse the repository at this point in the history
WXKG02LM 'action' payload revision as 'click' will be deprecated
  • Loading branch information
xaviml authored Oct 5, 2020
2 parents 81f53d1 + 259bc56 commit a91dbb9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions apps/controllerx/cx_devices/aqara.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ class WXKG02LMLightController(LightController):

def get_z2m_actions_mapping(self) -> TypeActionsMapping:
return {
"both": Light.TOGGLE,
"both_double": Light.CLICK_BRIGHTNESS_UP,
"both_long": Light.CLICK_BRIGHTNESS_DOWN,
"left": Light.TOGGLE,
"left_double": Light.CLICK_BRIGHTNESS_UP,
"left_long": Light.CLICK_BRIGHTNESS_DOWN,
"right": Light.TOGGLE,
"right_double": Light.CLICK_BRIGHTNESS_UP,
"right_long": Light.CLICK_BRIGHTNESS_DOWN,
"single_both": Light.TOGGLE,
"double_both": Light.CLICK_BRIGHTNESS_UP,
"hold_both": Light.CLICK_BRIGHTNESS_DOWN,
"single_left": Light.TOGGLE,
"double_left": Light.CLICK_BRIGHTNESS_UP,
"hold_left": Light.CLICK_BRIGHTNESS_DOWN,
"single_right": Light.TOGGLE,
"double_right": Light.CLICK_BRIGHTNESS_UP,
"hold_right": Light.CLICK_BRIGHTNESS_DOWN,
}

def get_deconz_actions_mapping(self) -> TypeActionsMapping:
Expand Down

0 comments on commit a91dbb9

Please sign in to comment.