Просмотр исходного кода

Device config: remove unused local variable

constraint was only used for logging that was removed in last change.
Jason Rumney 1 год назад
Родитель
Сommit
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(