zigpy / zigpy-znp

TI CC2531, CC13x2, CC26x2 radio support for Zigpy and ZHA
GNU General Public License v3.0
145 stars 40 forks source link

_zstack_build_id missing ? - '<' not supported between instances of 'NoneType' and 'int' #116

Closed mdeweerd closed 2 years ago

mdeweerd commented 2 years ago

Hi

Here is the traceback for a failure occuring when permitting joins. The zip contains the script, the log and the sql dump.

Traceback (most recent call last):
  File "../workspace/testpy/./zig.py", line 90, in <module>
    asyncio.run(main())
  File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/cygdrive/d/mdeweerd/workspace/testpy/./zig.py", line 76, in main
    await app.permit(60)
  File "/usr/local/lib/python3.9/site-packages/zigpy_znp/zigbee/application.py", line 537, in permit
    if time_s == 0 or self._zstack_build_id < 20210708 or node == self.ieee:
TypeError: '<' not supported between instances of 'NoneType' and 'int'

NoneTypeIssue.zip

puddly commented 2 years ago

The version of Z-Stack on your stick is very old, you should upgrade it.