From 769abf18edf23da085a9bf8aea5415f8010aef43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20RAMAGE?= Date: Thu, 15 Nov 2018 15:49:43 +0100 Subject: [PATCH] Fix remove device command 0x0026 --- zigate/core.py | 5 ++--- zigate/version.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/zigate/core.py b/zigate/core.py index 87a79b37..704a037b 100644 --- a/zigate/core.py +++ b/zigate/core.py @@ -728,10 +728,9 @@ def remove_device(self, addr): ''' remove device ''' if addr in self._devices: ieee = self._devices[addr]['ieee'] -# addr = self.__addr(addr) ieee = self.__addr(ieee) -# data = struct.pack('!HQ', addr, ieee) - data = struct.pack('!QQ', ieee, ieee) + zigate_ieee = self.__addr(self.ieee) + data = struct.pack('!QQ', zigate_ieee, ieee) return self.send_data(0x0026, data) def _bind_unbind(self, cmd, ieee, endpoint, cluster, diff --git a/zigate/version.py b/zigate/version.py index 533e66a9..c1a18b7d 100644 --- a/zigate/version.py +++ b/zigate/version.py @@ -5,4 +5,4 @@ # file that was distributed with this source code. # -__version__ = '0.22.0dev' +__version__ = '0.21.1'