From 830484c5f812af1a78982e57dc81bee0e561210c Mon Sep 17 00:00:00 2001 From: Roman Bazalevsky Date: Fri, 5 Jun 2020 20:35:53 +0300 Subject: [PATCH 1/1] =?utf8?q?=D0=9D=D0=B5=D0=B7=D0=BD=D0=B0=D1=87=D0=B8?= =?utf8?q?=D1=82=D0=B5=D0=BB=D1=8C=D0=BD=D0=BE=20=D0=BF=D1=80=D0=B8=D1=87?= =?utf8?q?=D0=B5=D1=81=D0=B0=D0=BD=20=D0=BA=D0=BE=D0=B4=20(=D1=83=D0=B1?= =?utf8?q?=D1=80=D0=B0=D0=BD=D1=8B=20=D0=B4=D1=83=D0=B1=D0=BB=D0=B8=D1=80?= =?utf8?q?=D1=83=D1=8E=D1=89=D0=B8=D0=B5=D1=81=D1=8F=20=D1=81=D1=82=D1=80?= =?utf8?q?=D0=BE=D0=BA=D0=B8).?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- nmd/nl_mqtt.py | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/nmd/nl_mqtt.py b/nmd/nl_mqtt.py index f02018c..d4ce7ae 100644 --- a/nmd/nl_mqtt.py +++ b/nmd/nl_mqtt.py @@ -241,10 +241,6 @@ class MqttDriver(metaclass=Singleton): message['command'] = 'BRIGHT_UP' elif cmd == 4: message['command'] = 'SWITCH' - elif cmd == 5: - message['command'] = 'SWITCH' - elif cmd == 5: - message['command'] = 'BRIGHT_BACK' elif cmd == 5: message['command'] = 'BRIGHT_BACK' elif cmd == 6: @@ -257,12 +253,12 @@ class MqttDriver(metaclass=Singleton): message['command'] = 'UNBIND' elif cmd == 10: message['command'] = 'STOP_REG' -# elif cmd == 11: -# message['command'] = 'BRIGHTNESS_STEP_DOWN' -# elif cmd == 12: -# message['command'] = 'BRIGHTNESS_STEP_UP' -# elif cmd == 13: -# message['command'] = 'BRIGHT_REG' + elif cmd == 11: + message['command'] = 'BRIGHTNESS_STEP_DOWN' + elif cmd == 12: + message['command'] = 'BRIGHTNESS_STEP_UP' + elif cmd == 13: + message['command'] = 'BRIGHT_REG' elif cmd == 15: message['command'] = 'BIND' elif cmd == 16: -- 2.34.1