Răsfoiți Sursa

Device config: remove unused local variable

constraint was only used for logging that was removed in last change.
Jason Rumney 1 an în urmă
părinte
comite
b043ebe111
1 a modificat fișierele cu 0 adăugiri și 1 ștergeri
  1. 0 1
      custom_components/tuya_local/helpers/device_config.py

+ 0 - 1
custom_components/tuya_local/helpers/device_config.py

@@ -631,7 +631,6 @@ class TuyaDpsConfig:
 
             cond = self._active_condition(mapping, device)
             if cond:
-                constraint = mapping.get("constraint", self.name)
                 step = cond.get("step", step)
         if step != 1 or scale != 1:
             _LOGGER.debug(