فهرست منبع

Device config: remove unused local variable

constraint was only used for logging that was removed in last change.
Jason Rumney 1 سال پیش
والد
کامیت
b043ebe111
1فایلهای تغییر یافته به همراه0 افزوده شده و 1 حذف شده
  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(