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

Fix both_click for 86sw2

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/trunk@2044 b32b6428-25c9-4566-ad07-03861ab6144f
parent dd670385
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,6 @@ class Switch(AqaraDev):
def report(self,data):
status = data.get('status',None)
if status:
# TBD device should be able to send notif themself
self.devices[0].send_notification(status)
......@@ -74,6 +73,7 @@ class Switch86(AqaraDev):
r = data.get(k,None)
# in the current firmware this switch alsway 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)
idx = idx + 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment