Unknown error occurred when submitting token on Xiaomi Miio integration

I have Roborock S5 Max and got my token. After I fill in the IP and token and submit, it asks me the token again, and gives Unknown error occurred or Failed to connecterror. On Chrome debugger I found out that:

Why? and how can I fix it?


Read the docs. The vacuum must be added manually to configuration.yaml