Przeglądaj źródła

primary and secondary entities are not accepted by tests, therefore use only entities

salbr 1 rok temu
rodzic
commit
1a66489d9c

+ 12 - 13
custom_components/tuya_local/devices/wzm100w_presence_sensor.yaml

@@ -4,19 +4,18 @@ products:
     name: WZ-M100-W
     manufacturer: Whenzi
     model: WZ-M100-W
-primary_entity:
-  entity: binary_sensor
-  class: occupancy
-  dps:
-    - id: 1
-      type: string
-      name: sensor
-      mapping:
-        - dps_val: presence
-          value: true
-        - dps_val: none
-          value: false
-secondary_entities:
+entities:
+  - entity: binary_sensor
+    class: occupancy
+    dps:
+      - id: 1
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: presence
+            value: true
+          - dps_val: none
+            value: false
   - entity: number
     name: Sensitivity
     category: config