|
|
@@ -901,8 +901,7 @@ class TuyaDpsConfig:
|
|
|
)
|
|
|
)
|
|
|
for cond in conditions:
|
|
|
- avail_dp = cond.get("available")
|
|
|
- if avail_dp and not self.mapping_available(avail_dp, device):
|
|
|
+ if not self.mapping_available(cond, device):
|
|
|
continue
|
|
|
if c_val is not None and (_equal_or_in(c_val, cond.get("dps_val"))):
|
|
|
c_match = cond
|