Tuya Error - Failed To Set Up

Trying to add a Tuya entity but keep running into an error saying Tuya failure, see log. Tuya has always worked fine until now. My existing entities still seem to work okay but I cannot add any new ones. Please I need help to fix this annoying problem.

Error from log as follows:

Logger: homeassistant.config_entries
Source: config_entries.py:769
First occurred: 2 April 2026 at 11:59:36 (19 occurrences)
Last logged: 07:44:44

Error setting up entry [email protected] for tuya
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 769, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/config/custom_components/xtend_tuya/multi_manager/shared/decorator.py”, line 41, in wrapped
return_val = await self.orig_method(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/config/custom_components/xtend_tuya/multi_manager/shared/decorator.py”, line 41, in wrapped
return_val = await self.orig_method(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/config/custom_components/xtend_tuya/multi_manager/shared/decorator.py”, line 41, in wrapped
return_val = await self.orig_method(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Previous line repeated 3 more times]
File “/config/custom_components/xtend_tuya/multi_manager/shared/decorator.py”, line 45, in wrapped
await callback(
…<5 lines>…
)
File “/config/custom_components/xtend_tuya/multi_manager/managers/tuya_sharing/ha_tuya_integration/config_entry_handler.py”, line 50, in on_tuya_setup_entry
hass.config_entries.async_schedule_reload(self.config_entry.entry_id)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 2350, in async_schedule_reload
entry = self.async_get_known_entry(entry_id)
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 2073, in async_get_known_entry
raise UnknownEntry(entry_id)
homeassistant.config_entries.UnknownEntry: 01KN78PHMCNDTJ6A4ESY981RGS

Update:
This problem was caused by the “Tuya Extended” integration, which had been deleted but leftover remnants remained in the system. A Core update this morning found the remnants and prompted me to remove them. Once removed, normal Tuya functionality resumed (adding or removing Tuya entities all back to normal and error message gone).

Great that you solved your issue
Please mark your last answer as Solution

Click The 3 dots below your Answer(with the Solution) and check the Solution box
This Way other people who experience the same, would find this (Marked With a Solution) If they use the Search in here.