doudz / zigate

python lib for zigate
MIT License
46 stars 22 forks source link

TypeError: unhashable type: 'collections.OrderedDict' #112

Closed doudz closed 5 years ago

doudz commented 5 years ago
DEBUG:zigate:Raw packet received, b'\x01\x80E\x02\x10\x02\x17)~\x02\x10:}\x02\x11\x02\x11\xd2\x03'
DEBUG:zigate:Dispatch ZIGATE_PACKET_RECEIVED
DEBUG:zigate:Received response 0x8045: b'7e003a7d0101'
DEBUG:zigate:RESPONSE 0x8045 - Active endpoints : endpoints:[OrderedDict([('endpoint', 1)])], sequence:126, status:0, addr:3a7d, endpoint_count:1, lqi:210
Exception in thread ZiGate-Decode data:
Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/home/doudz/.local/lib/python3.6/site-packages/zigate/core.py", line 475, in decode_data
    self.interpret_response(response)
  File "/home/doudz/.local/lib/python3.6/site-packages/zigate/core.py", line 520, in interpret_response
    ep = d.get_endpoint(endpoint)
  File "/home/doudz/.local/lib/python3.6/site-packages/zigate/core.py", line 2545, in get_endpoint
    if endpoint_id not in self.endpoints:
TypeError: unhashable type: 'collections.OrderedDict'