Please see the topic “dyson not connecting anymore”. Or else go directly to issue #37 on the libpurecool repository on Github.
If you run home assistant as a Docker container, you can run the command below on your host machine. Make sure to restart the container afterwards.
docker exec -t <homeassistant_container_name> pip3 install --upgrade git+https://github.com/bfayers/libpurecool.git@fix_auth
FYI, libpurecool will most likely be replaced by ha-dyson. Also libpurecool is being moved to bfayers repo.