Explorar el Código

Device config: remove unused local variable

constraint was only used for logging that was removed in last change.
Jason Rumney hace 1 año
padre
commit
b043ebe111
Se han modificado 1 ficheros con 0 adiciones y 1 borrados
  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)
             cond = self._active_condition(mapping, device)
             if cond:
             if cond:
-                constraint = mapping.get("constraint", self.name)
                 step = cond.get("step", step)
                 step = cond.get("step", step)
         if step != 1 or scale != 1:
         if step != 1 or scale != 1:
             _LOGGER.debug(
             _LOGGER.debug(