Skip to content
Snippets Groups Projects
Commit aa932fcc authored by jkerdreu's avatar jkerdreu
Browse files

Added new buttons



git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2677 b32b6428-25c9-4566-ad07-03861ab6144f
parent 72191c1f
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ BATTERY_LESS = ['lumi.ctrl_dualchn','gateway']
def find_device_class(model):
if model in ['sensor_switch.aq3','sensor_switch.aq2','switch','86sw1']:
return Switch
if model in ['86sw2','remote.b286acn01']:
if model in ['86sw2','remote.b286acn01','remote.b286acn02']:
return Switch86sw2
if model == 'gateway':
return Gateway
......@@ -150,7 +150,7 @@ class Switch86sw2(AqaraDev):
idx = 0
for k in chans:
r = data.get(k,None)
# in the current firmware this switch alsway return both click and long_click
# in the current firmware this switch always return both click and long_click
if r and (r.startswith('long_')==False):
if r=='both_click': r='click'
self.devices[idx].send_notification(r)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment