ソースを参照

changed type of DP 9

almirus 2 年 前
コミット
da594b918c

+ 1 - 7
custom_components/tuya_local/devices/ble_smart_plant_moisture.yaml

@@ -25,17 +25,11 @@ secondary_entities:
           - scale: 10
           - scale: 10
         unit: C
         unit: C
   - entity: sensor
   - entity: sensor
-    translation_key: temperature_unit
+    name: Temperature unit
     category: diagnostic
     category: diagnostic
     dps:
     dps:
       - id: 9
       - id: 9
-        name: option
         type: string
         type: string
-        mapping:
-          - dps_val: "f"
-            value: fahrenheit
-          - dps_val: "c"
-            value: celsius
   - entity: sensor
   - entity: sensor
     class: battery
     class: battery
     category: diagnostic
     category: diagnostic