I recently updated to the latest version (23.09.2) and I'm getting an error when trying to use the async_set_persistence_data method.
TypeError: aiohttp.client.ClientSession._request() got multiple values for keyword argument 'params'
After digging into your code at/HABApp/openhab/connection/handler/handler.py, I noticed that all calls to self.request have the
argument **kwargstwice. When I removed the one, async_set_persistence_data worked without any errors.
Thank you for your report. I'll fix this next week since I'll have to add a test, too.
You can just patch this locally (just edit the file) so you can continue using the latest version.
Hello @spacemanspiff2007,
I recently updated to the latest version (23.09.2) and I'm getting an error when trying to use the
async_set_persistence_data
method.TypeError: aiohttp.client.ClientSession._request() got multiple values for keyword argument 'params'
After digging into your code at
/HABApp/openhab/connection/handler/handler.py,
I noticed that all calls toself.request
have the argument**kwargs
twice. When I removed the one,async_set_persistence_data
worked without any errors.Bellow are the logs describing the error:
I can make a merge request if you want, but it seems it is just a typo. Thank you in advance.