Tuya integration issues (Network Errors / 104 -999999 / LocalTuya)

I just had the same problem after upgrading HA to 2026.8.0. I never had the issue before, but it has occurred 3 times this morning since the upgrade.