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

DejaVu black reformatting.

black must be fighting against some other reformatter here.
Jason Rumney 3 лет назад
Родитель
Сommit
2b910e4741
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      custom_components/tuya_local/helpers/device_config.py

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

@@ -306,7 +306,7 @@ class TuyaDpsConfig:
                     max = range.get("max")
                     max = range.get("max")
                 else:
                 else:
                     min = 0
                     min = 0
-                    max = 256 ** bytes - 1
+                    max = 256**bytes - 1
 
 
                 unpack_fmt = unpack_fmt + _bytesToFmt(bytes, min < 0)
                 unpack_fmt = unpack_fmt + _bytesToFmt(bytes, min < 0)
                 ranges.append({"min": min, "max": max})
                 ranges.append({"min": min, "max": max})