|
@@ -433,14 +433,14 @@ class TuyaDpsConfig:
|
|
|
return []
|
|
return []
|
|
|
val = []
|
|
val = []
|
|
|
for m in self._config["mapping"]:
|
|
for m in self._config["mapping"]:
|
|
|
- if "value" in m:
|
|
|
|
|
|
|
+ if "value" in m and not m.get("hidden", False):
|
|
|
val.append(m["value"])
|
|
val.append(m["value"])
|
|
|
# If there is mirroring without override, include mirrored values
|
|
# If there is mirroring without override, include mirrored values
|
|
|
elif "value_mirror" in m:
|
|
elif "value_mirror" in m:
|
|
|
r_dps = self._entity.find_dps(m["value_mirror"])
|
|
r_dps = self._entity.find_dps(m["value_mirror"])
|
|
|
val = val + r_dps.values(device)
|
|
val = val + r_dps.values(device)
|
|
|
for c in m.get("conditions", {}):
|
|
for c in m.get("conditions", {}):
|
|
|
- if "value" in c:
|
|
|
|
|
|
|
+ if "value" in c and not c.get("hidden", False):
|
|
|
val.append(c["value"])
|
|
val.append(c["value"])
|
|
|
elif "value_mirror" in c:
|
|
elif "value_mirror" in c:
|
|
|
r_dps = self._entity.find_dps(c["value_mirror"])
|
|
r_dps = self._entity.find_dps(c["value_mirror"])
|
|
@@ -451,7 +451,7 @@ class TuyaDpsConfig:
|
|
|
_LOGGER.debug("Considering conditional mappings")
|
|
_LOGGER.debug("Considering conditional mappings")
|
|
|
c_val = []
|
|
c_val = []
|
|
|
for m2 in cond["mapping"]:
|
|
for m2 in cond["mapping"]:
|
|
|
- if "value" in m2:
|
|
|
|
|
|
|
+ if "value" in m2 and not m2.get("hidden", False):
|
|
|
c_val.append(m2["value"])
|
|
c_val.append(m2["value"])
|
|
|
elif "value_mirror" in m:
|
|
elif "value_mirror" in m:
|
|
|
r_dps = self._entity.find_dps(m["value_mirror"])
|
|
r_dps = self._entity.find_dps(m["value_mirror"])
|