Skip to content

Commit

Permalink
fix ieee
Browse files Browse the repository at this point in the history
  • Loading branch information
doudz committed Jul 6, 2018
1 parent 0032160 commit 449f0bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zigate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from .const import *
from pydispatch import dispatcher

__version__ = '0.17.1'
__version__ = '0.17.2'

__all__ = ['ZiGate', 'ZiGateWiFi',
'dispatcher']
3 changes: 2 additions & 1 deletion zigate/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ def interpret_response(self, response):
'device': device,
'attribute': changed})
elif response.msg == 0x004D: # device announce
LOGGER.debug('Device Announce')
device = Device(response.data, self)
self._set_device(device)
# else:
Expand Down Expand Up @@ -542,7 +543,7 @@ def get_device_from_addr(self, addr):
def get_device_from_ieee(self, ieee):
if ieee:
for d in self._devices.values():
if d['ieee'] == ieee:
if d.ieee == ieee:
return d

def get_devices_list(self, wait=False):
Expand Down

0 comments on commit 449f0bb

Please sign in to comment.