Same here
I have cloned the current source to the custom_components, I am on the latest HA and the latest version of libpurecool (0.6.4)
I found the following bug report:
For those who think about downgrading HA, it won’t help.
The problem is again on Dyson side. Downgrading HA to 2021.1.5 (which used to work for me with Dyson previously) didn’t help - I’m seeing the exact same error.
The only way that HA update is related is that it forced a restart, and AFAIU the way dyson component is written, it only needs to contact Dyson on initialization to obtain credentials for local access.
The same thing happened to me this morning after restarting the HA.
Then I’ve tried the approach mentioned here: https://github.com/etheralm/libpurecool/issues/37
It did work for me and seems to be a decent temp fix.
I guess I’ll just forget about restart HA for some time…
I use Docker, so it’s probably not the same. For Docker, I just save that file somewhere, then add a volume mapping of that file to /usr/local/lib/python3.8/site-packages/libpurecool/dyson.py. Then when the fix is officially in I remove the volume mapping.
But really what you need to do is replace or edit the file above wherever your HA core is running.
You have such python directory but I do not know why we do not see it (it is the same for me, I do not see this directory when using SSH). But the method does work for me, and I am using HA under HassOS.