|
|
@@ -807,6 +807,7 @@ class TuyaDpsConfig:
|
|
|
return None
|
|
|
replaced = replaced or "value" in cond
|
|
|
result = cond.get("value", result)
|
|
|
+ invert = cond.get("invert", result)
|
|
|
redirect = cond.get("value_redirect", redirect)
|
|
|
mirror = cond.get("value_mirror", mirror)
|
|
|
target_range = cond.get("target_range", target_range)
|
|
|
@@ -1040,6 +1041,7 @@ class TuyaDpsConfig:
|
|
|
step = cond.get("step", step)
|
|
|
redirect = cond.get("value_redirect", redirect)
|
|
|
target_range = cond.get("target_range", target_range)
|
|
|
+ invert = cond.get("invert", invert)
|
|
|
|
|
|
if redirect:
|
|
|
_LOGGER.debug("Redirecting %s to %s", self.name, redirect)
|