From 432947af4be0648909240909d4740b7eeedc0fb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20RAMAGE?= Date: Tue, 22 Jan 2019 15:52:32 +0100 Subject: [PATCH] Fix lumi.ctrl_neutral1 --- zigate/core.py | 3 --- zigate/version.py | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/zigate/core.py b/zigate/core.py index 80af80c0..0882d0a1 100644 --- a/zigate/core.py +++ b/zigate/core.py @@ -1960,9 +1960,6 @@ def available_actions(self, endpoint_id=None): if endpoint: if endpoint['device'] in ACTUATORS: if 0x0006 in endpoint['in_clusters']: - # Oh please XIAOMI, respect the standard... - if ep_id != 1 and self.get_property_value('type') == 'lumi.ctrl_neutral1': - ep_id -= 1 actions[ep_id].append(ACTIONS_ONOFF) if 0x0008 in endpoint['in_clusters'] and endpoint['device'] != 0x010a: # except device 0x010a because Tradfri Outlet don't have level control diff --git a/zigate/version.py b/zigate/version.py index a309a7c9..a45f9164 100644 --- a/zigate/version.py +++ b/zigate/version.py @@ -5,4 +5,4 @@ # file that was distributed with this source code. # -__version__ = '0.26.0' +__version__ = '0.26.1'