Skip to content
This repository has been archived by the owner on Oct 5, 2024. It is now read-only.

Commit

Permalink
Fix remove device command 0x0026
Browse files Browse the repository at this point in the history
  • Loading branch information
doudz committed Nov 15, 2018
1 parent 2d85d6e commit 769abf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions zigate/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion zigate/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# file that was distributed with this source code.
#

__version__ = '0.22.0dev'
__version__ = '0.21.1'

0 comments on commit 769abf1

Please sign in to comment.