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

re-located optional in secondary

Steefph 1 год назад
Родитель
Сommit
06063e45a7
1 измененных файлов с 11 добавлено и 12 удалено
  1. 11 12
      custom_components/tuya_local/devices/smart_wifi_socket_Thermostat.yaml

+ 11 - 12
custom_components/tuya_local/devices/smart_wifi_socket_Thermostat.yaml

@@ -71,10 +71,10 @@ secondary_entities:
   # Turn on the display on press for timeout time
   - entity: button
     name: Display On
-    optional: true
     dps:
       - id: 118
         name: button
+        optional: true
         type: boolean
 
   # Diagnostics
@@ -107,11 +107,11 @@ secondary_entities:
     name: Display Timeout
     icon: "mdi:timer-cog-outline"
     category: config
-    optional: true
     dps:
       - id: 117
         type: string
         name: option
+        optional: true
         mapping:
           - dps_val: "15s"
             value: "15s"
@@ -136,11 +136,11 @@ secondary_entities:
     name: Alarm Maximum temperature
     category: config
     icon: "mdi:thermometer-chevron-up"
-    optional: true
     dps:
       - id: 9
         type: integer
         name: value
+        optional: true
         unit: C
         mapping:
           - scale: 10
@@ -153,21 +153,21 @@ secondary_entities:
     category: config
     name: Audio Alarm Low temperature
     icon: "mdi:thermometer-alert"
-    optional: true
     dps:
       - id: 11
         name: switch
+        optional: true
         type: boolean
   # Low temperature alarm setting
   - entity: number
     name: Alarm Minimum temperature
     category: config
     icon: "mdi:thermometer-chevron-down"
-    optional: true
     dps:
       - id: 12
         type: integer
         name: value
+        optional: true
         unit: C
         mapping:
           - scale: 10
@@ -181,21 +181,21 @@ secondary_entities:
     category: config
     name: Cooling Delay
     icon: "mdi:pump"
-    optional: true
     dps:
       - id: 13
         name: switch
+        optional: true
         type: boolean
   # Delay time (minutes)
   - entity: number
     name: Cooling Delay time
     category: config
     icon: "mdi:pump"
-    optional: true
     dps:
       - id: 14
         type: integer
         name: value
+        optional: true
         unit: min
         range:
           min: 0
@@ -217,11 +217,11 @@ secondary_entities:
     category: config
     icon: "mdi:thermometer"
     mode: "box"
-    optional: true
     dps:
       - id: 111
         type: integer
         name: value
+        optional: true
         mapping:
           - scale: 10
         unit: C
@@ -235,12 +235,11 @@ secondary_entities:
     category: config
     icon: "mdi:thermometer"
     mode: "box"
-    optional: true
     dps:
       - id: 18
         type: integer
-
         name: value
+        optional: true
         mapping:
           - scale: 10
         unit: C
@@ -253,11 +252,11 @@ secondary_entities:
     name: Brightness
     icon: "mdi:brightness-6"
     category: config
-    optional: true
     dps:
       - id: 115
         type: string
         name: option
+        optional: true
         mapping:
           - dps_val: "Low"
             value: "Low"
@@ -271,8 +270,8 @@ secondary_entities:
     category: config
     name: Restore Last State
     icon: "mdi:restore"
-    optional: true
     dps:
       - id: 116
         name: switch
+        optional: true
         type: boolean