In previous change I modified it to return the original value, but some parts of the lightbulb logic rely on None for catching invalid values.
@@ -380,7 +380,7 @@ class TuyaDpsConfig:
v,
self.name,
)
- return v
+ return None
elif self.rawtype == "base64" and isinstance(v, str):
try:
@@ -392,7 +392,7 @@ class TuyaDpsConfig:
else:
return v