Closed pipiche38 closed 2 years ago
Ah we have to update the handle_message() signature that we overwrite
Are you overloading handle_message
in your own subclasses? This has been there for a while: https://github.com/zigbeefordomoticz/zigpy/blob/0ed5b0ed521ef3eab6df42ec10c0ce488b4c33e5/zigpy/application.py#L335
yes, I correct it and it is better
this one looks more strange
future: <Task finished name='Task-9' coro=<transport_request() done, defined at /var/lib/domoticz/plugins/Domoticz-Zigbee/Classes/ZigpyTransport/zigpyThread.py:607> exception=TypeError('request() takes 8 positional arguments but 10 positional arguments (and 1 keyword-only argument) were given')>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/tasks.py", line 256, in __step
result = coro.send(None)
File "/var/lib/domoticz/plugins/Domoticz-Zigbee/Classes/ZigpyTransport/zigpyThread.py", line 647, in transport_request
result, msg = await self.app.request( destination, Profile, Cluster, sEp, dEp, sequence, payload, expect_reply, use_ieee,extended_timeout=False )
File "/var/lib/domoticz/plugins/Domoticz-Zigbee/zigpy/util.py", line 153, in wrapper
return func(*args, **kwargs)
TypeError: request() takes 8 positional arguments but 10 positional arguments (and 1 keyword-only argument) were given
expect_reply, use_ieee,extended_timeout=False
should be expect_reply=expect_reply, use_ieee=use_ieee, extended_timeout=False
.
yep. simple python syntax. sorry for that. it works now.
BTW extended_timeout=False is that the previous behavior, or is that more extended_timeout=True which is the behaviour from the library before the packet-api ?
extended_timeout
is set to True
by the device object when you are sending a request to an end device. It increases the interval between retries on EmberZNet. This behavior is still retained, it's just exposed via the packet API if you don't use the Device
object.
I'm starting to integrate the new zigpy-packet-api, and I would like to thank you for keeping the backward compatibility. This is really helpfull for us taking the integration path.
I had no issue on the bellows side, but facing an issue on ZNP