Unknown error occurred when submitting token on Xiaomi Miio integration

Hi,
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?

Thanks.

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