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

Move prettier to top and only run yamllint on devices

Fredrik 7 месяцев назад
Родитель
Сommit
bbd439af58

+ 5 - 5
.pre-commit-config.yaml

@@ -1,4 +1,8 @@
 repos:
+  - repo: https://github.com/pre-commit/mirrors-prettier
+    rev: v3.0.3
+    hooks:
+      - id: prettier
   - repo: https://github.com/astral-sh/ruff-pre-commit
     rev: v0.12.1
     hooks:
@@ -18,10 +22,6 @@ repos:
           - --check
           - --diff
         files: ^((homeassistant|pylint|script|tests)/.+)?[^/]+\.(py|pyi)$
-  - repo: https://github.com/pre-commit/mirrors-prettier
-    rev: v3.0.3
-    hooks:
-      - id: prettier
   - repo: https://github.com/adrienverge/yamllint.git
     rev: v1.37.1
     hooks:
@@ -29,4 +29,4 @@ repos:
         args:
           - --format
           - github
-          - custom_components/tuya_local/devices
+        files: ^custom_components/tuya_local/devices/.*\\.ya?ml$

+ 22 - 22
custom_components/tuya_local/devices/feyree_ev_portable_charger.yaml

@@ -198,10 +198,10 @@ entities:
                 value_redirect: value_40a
               - dps_val: Max50A
                 value_redirect: value_50a
-              # - dps_val: Max60A
-              #   value_redirect: value_60a
-              # - dps_val: Max80A
-              #   value_redirect: value_80a
+                # - dps_val: Max60A
+                #   value_redirect: value_60a
+                # - dps_val: Max80A
+                #   value_redirect: value_80a
       - id: 113
         type: string
         optional: true
@@ -215,10 +215,10 @@ entities:
             value: 40
           - dps_val: Max50A
             value: 50
-          # - dps_val: Max60A
-          #   value: 60
-          # - dps_val: Max80A
-          #   value: 80
+            # - dps_val: Max60A
+            #   value: 60
+            # - dps_val: Max80A
+            #   value: 80
       - id: 113
         type: string
         optional: true
@@ -248,20 +248,20 @@ entities:
         range:
           min: 8
           max: 50
-      # - id: 125
-      #   type: integer
-      #   optional: true
-      #   name: value_60a
-      #   range:
-      #     min: 8
-      #     max: 60
-      # - id: 126
-      #   type: integer
-      #   optional: true
-      #   name: value_80a
-      #   range:
-      #     min: 24
-      #     max: 80
+          # - id: 125
+          #   type: integer
+          #   optional: true
+          #   name: value_60a
+          #   range:
+          #     min: 8
+          #     max: 60
+          # - id: 126
+          #   type: integer
+          #   optional: true
+          #   name: value_80a
+          #   range:
+          #     min: 24
+          #     max: 80
   - entity: number
     name: Charge delay
     category: config