codingjoe / ssdp

Python asyncio library for Simple Service Discovery Protocol (SSDP).
https://en.wikipedia.org/wiki/Simple_Service_Discovery_Protocol
MIT License
41 stars 12 forks source link

TypeError: function() argument 'code' must be code, not str #95

Open dipseth opened 1 year ago

dipseth commented 1 year ago

I had this error (or something similar) from the new ssdp release.

TypeError: function() argument 'code' must be code, not str

Trouble come in this line from a Home assistant integration using ssdp.SimpleServiceDiscoveryProtocol.

Fixed on my end for now by fixing to ssdp=1.1.1

codingjoe commented 1 year ago

Hi @dipseth,

I don't know if I can fully follow everything. Can you maybe provide me with a little more context? There were a bunch of more significant changes in version 1.2, but they should be backwards compatible.

Cheers! Joe