Skip to content

Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble #2130

Description

@vjmaz

Installation method
Home Assistant OS
Core
2025.12.1
Supervisor
2025.12.2
Operating System
16.3
Frontend
20251203.1

Local tuya not working AI states

The traceback you provided clearly identifies the specific cause of the 500 error within the LocalTuya custom integration code itself:
python
AttributeError: property 'config_entry' of 'LocalTuyaOptionsFlowHandler' object has no setter
Use code with caution.

This error means the specific version of the LocalTuya integration you have installed is incompatible with your current version of Home Assistant (which appears to be using Python 3.13, indicating a very recent HA version).
The integration's code is trying to set a property (self.config_entry = config_entry) that Home Assistant no longer allows to be set in that manner in the latest Core updates. The integration developer needs to update their code to match Home Assistant's API changes.
Solution: Update or Change the LocalTuya Integration
The primary fix is to ensure you are using a maintained and up-to-date version of the LocalTuya integration that is compatible with the latest Home Assistant Core.
Check for an Update in HACS:
Go to HACS > Integrations.
Find the installed LocalTuya integration.
If an update is available, install it immediately and restart Home Assistant.
Verify the Repository URL:
If no update is available, the repository you are using might be abandoned or slow to update.
Ensure you are using the most current, community-recommended fork. Many users switched to the xZetsubou fork when the original repository (rospogrigio) fell behind Home Assistant updates.
Switch to the xZetsubou Fork (Recommended alternative if the current one is outdated):
Go to HACS > Integrations.
Click the three dots (⋮) in the top right and select Custom repositories.
Remove the current LocalTuya repository URL if it is present.
Add the URL for the maintained fork: github.com
Select Integration as the category and click Add.
Uninstall the existing LocalTuya integration (if the name conflicts/doesn't update automatically), restart HA, and then install the version from the new repository.
This code error is internal to the custom component, and switching to a current, compatible version is the required fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions