Error adding TP-LINK Tapo 500 Integration: Internal Server Error - Server got itself in trouble

After updating HA Core to 2025.10.1, the TP-Link Tapo integration stopped working.

I noticed that the version of this integration was quite outdated. Shouldn’t it update with every Home Assistant Core update?

I then uninstalled the integration. However, now when I try to add it again, I receive the following error: 500 Internal Server Error - Server got itself in trouble.

In the logs, I see this error: **Error handling request from 192.168.1.2 (the IP address is my router’s address) Registratore: aiohttp.server Fonte: /usr/local/lib/python3.13/site-packages/aiohttp/web_protocol.py:481**

How can I fix this? Thanks to anyone who can help me.