Parcourir la source

Standardise factory reset buttons to use translations.

Issue #1708
Jason Rumney il y a 1 an
Parent
commit
0e10d3870a
61 fichiers modifiés avec 157 ajouts et 80 suppressions
  1. 1 2
      custom_components/tuya_local/devices/atorch_at2pl_breaker.yaml
  2. 1 2
      custom_components/tuya_local/devices/atorch_s1wp.yaml
  3. 1 1
      custom_components/tuya_local/devices/avatto_me81_thermostat.yaml
  4. 1 2
      custom_components/tuya_local/devices/beok_tcb38_thermostat.yaml
  5. 2 2
      custom_components/tuya_local/devices/beok_tgm50_thermostat.yaml
  6. 1 2
      custom_components/tuya_local/devices/bht002_galw_thermostat.yaml
  7. 1 2
      custom_components/tuya_local/devices/bht002_gblw_thermostat.yaml
  8. 1 2
      custom_components/tuya_local/devices/blitzwolf_bwis6_alarm.yaml
  9. 1 2
      custom_components/tuya_local/devices/catit_pet_feeder.yaml
  10. 1 2
      custom_components/tuya_local/devices/catit_pixi_6meal_feeder.yaml
  11. 1 2
      custom_components/tuya_local/devices/catit_pixi_smart_feeder.yaml
  12. 1 2
      custom_components/tuya_local/devices/cleverio_pf100_petfeeder.yaml
  13. 2 2
      custom_components/tuya_local/devices/faroro_pet_feeder.yaml
  14. 1 2
      custom_components/tuya_local/devices/gaqqee_kws302wf_energymeter.yaml
  15. 1 2
      custom_components/tuya_local/devices/ipettie_w5_petfeeder.yaml
  16. 8 1
      custom_components/tuya_local/devices/me80_thermostat.yaml
  17. 1 1
      custom_components/tuya_local/devices/medion_s20_vacuum.yaml
  18. 1 2
      custom_components/tuya_local/devices/modernflames_orion_fireplace.yaml
  19. 1 2
      custom_components/tuya_local/devices/nashone_mts700wb_thermostat.yaml
  20. 1 2
      custom_components/tuya_local/devices/petlibro_PLAF103_feeder.yaml
  21. 1 2
      custom_components/tuya_local/devices/pgst_pw150_alarm.yaml
  22. 1 3
      custom_components/tuya_local/devices/plikc_neve_thermostat.yaml
  23. 1 2
      custom_components/tuya_local/devices/powerworld_pw58330_waterheater.yaml
  24. 1 2
      custom_components/tuya_local/devices/powerworld_pw58410_hvaconly.yaml
  25. 1 2
      custom_components/tuya_local/devices/powerworld_pw58410_waterheater.yaml
  26. 1 1
      custom_components/tuya_local/devices/psmart_t436_thermostat.yaml
  27. 1 2
      custom_components/tuya_local/devices/puppy_kitty_pet_feeder.yaml
  28. 1 2
      custom_components/tuya_local/devices/t5e_wf_thermostat.yaml
  29. 8 3
      custom_components/tuya_local/devices/thermoval_tvt40_thermostat.yaml
  30. 1 2
      custom_components/tuya_local/devices/timeguard_wfpir.yaml
  31. 1 2
      custom_components/tuya_local/devices/tongou_qcb2_circuitbreaker.yaml
  32. 1 2
      custom_components/tuya_local/devices/tongou_qcb2_singlephasebreaker.yaml
  33. 1 2
      custom_components/tuya_local/devices/tongou_qcb2wb_breaker.yaml
  34. 1 2
      custom_components/tuya_local/devices/ts106_alarm.yaml
  35. 1 2
      custom_components/tuya_local/devices/vine_tj550_thermostat.yaml
  36. 1 2
      custom_components/tuya_local/devices/wolfguard_wt2r_alarm.yaml
  37. 1 2
      custom_components/tuya_local/devices/yp_petfeeeder.yaml
  38. 1 2
      custom_components/tuya_local/devices/zg205w_mmWave_presence_sensor.yaml
  39. 1 2
      custom_components/tuya_local/devices/zx_db11_doorbell_alarm.yaml
  40. 1 2
      custom_components/tuya_local/devices/zx_db11b_doorbell_alarm.yaml
  41. 1 2
      custom_components/tuya_local/devices/zx_g30_alarm.yaml
  42. 5 0
      custom_components/tuya_local/icons.json
  43. 5 0
      custom_components/tuya_local/translations/bg.json
  44. 5 0
      custom_components/tuya_local/translations/cz.json
  45. 5 0
      custom_components/tuya_local/translations/de.json
  46. 5 0
      custom_components/tuya_local/translations/el.json
  47. 5 0
      custom_components/tuya_local/translations/en.json
  48. 5 0
      custom_components/tuya_local/translations/es.json
  49. 5 0
      custom_components/tuya_local/translations/fr.json
  50. 5 0
      custom_components/tuya_local/translations/hu.json
  51. 5 0
      custom_components/tuya_local/translations/id.json
  52. 5 0
      custom_components/tuya_local/translations/it.json
  53. 5 0
      custom_components/tuya_local/translations/ja.json
  54. 5 0
      custom_components/tuya_local/translations/no-NB.json
  55. 5 0
      custom_components/tuya_local/translations/pl.json
  56. 5 0
      custom_components/tuya_local/translations/pt-BR.json
  57. 5 0
      custom_components/tuya_local/translations/ru.json
  58. 5 0
      custom_components/tuya_local/translations/uk.json
  59. 5 0
      custom_components/tuya_local/translations/ur.json
  60. 5 0
      custom_components/tuya_local/translations/zh-Hans.json
  61. 5 0
      custom_components/tuya_local/translations/zh-Hant.json

+ 1 - 2
custom_components/tuya_local/devices/atorch_at2pl_breaker.yaml

@@ -209,8 +209,7 @@ secondary_entities:
         name: button
         optional: true
   - entity: button
-    name: Factory reset
-    class: restart
+    translation_key: factory_reset
     category: config
     dps:
       - id: 115

+ 1 - 2
custom_components/tuya_local/devices/atorch_s1wp.yaml

@@ -200,9 +200,8 @@ secondary_entities:
         name: button
         optional: true
   - entity: button
-    name: Factory reset
+    translation_key: factory_reset
     category: diagnostic
-    class: restart
     dps:
       - id: 115
         type: boolean

+ 1 - 1
custom_components/tuya_local/devices/avatto_me81_thermostat.yaml

@@ -115,7 +115,7 @@ secondary_entities:
           min: -9
           max: 9
   - entity: button
-    name: Factory reset
+    translation_key: factory_reset
     category: config
     dps:
       - id: 39

+ 1 - 2
custom_components/tuya_local/devices/beok_tcb38_thermostat.yaml

@@ -134,8 +134,7 @@ secondary_entities:
         type: boolean
         name: switch
   - entity: button
-    name: Factory reset
-    class: restart
+    translation_key: factory_reset
     category: config
     dps:
       - id: 31

+ 2 - 2
custom_components/tuya_local/devices/beok_tgm50_thermostat.yaml

@@ -152,8 +152,8 @@ secondary_entities:
         type: boolean
         name: switch
   - entity: button
-    name: Factory reset
-    class: restart
+    translation_key: factory_reset
+    category: config
     dps:
       - id: 104
         name: button

+ 1 - 2
custom_components/tuya_local/devices/bht002_galw_thermostat.yaml

@@ -57,8 +57,7 @@ primary_entity:
         - scale: 10
 secondary_entities:
   - entity: button
-    name: Factory reset
-    class: restart
+    translation_key: factory_reset
     category: config
     dps:
       - id: 39

+ 1 - 2
custom_components/tuya_local/devices/bht002_gblw_thermostat.yaml

@@ -64,8 +64,7 @@ primary_entity:
         - scale: 10
 secondary_entities:
   - entity: button
-    name: Factory reset
-    class: restart
+    translation_key: factory_reset
     category: config
     dps:
       - id: 39

+ 1 - 2
custom_components/tuya_local/devices/blitzwolf_bwis6_alarm.yaml

@@ -182,8 +182,7 @@ secondary_entities:
         type: string
         name: information
   - entity: button
-    name: Factory reset
-    class: restart
+    translation_key: factory_reset
     category: config
     dps:
       - id: 34

+ 1 - 2
custom_components/tuya_local/devices/catit_pet_feeder.yaml

@@ -26,8 +26,7 @@ secondary_entities:
         name: sensor
         type: integer
   - entity: button
-    class: restart
-    name: Factory reset
+    translation_key: factory_reset
     category: config
     dps:
       - id: 103

+ 1 - 2
custom_components/tuya_local/devices/catit_pixi_6meal_feeder.yaml

@@ -56,8 +56,7 @@ secondary_entities:
           - dps_val: 1
             value: true
   - entity: button
-    class: restart
-    name: Factory reset
+    translation_key: factory_reset
     category: config
     dps:
       - id: 9

+ 1 - 2
custom_components/tuya_local/devices/catit_pixi_smart_feeder.yaml

@@ -29,8 +29,7 @@ secondary_entities:
         name: sensor
         type: integer
   - entity: button
-    class: restart
-    name: Factory reset
+    translation_key: factory_reset
     category: config
     dps:
       - id: 9

+ 1 - 2
custom_components/tuya_local/devices/cleverio_pf100_petfeeder.yaml

@@ -22,8 +22,7 @@ primary_entity:
       name: mode
 secondary_entities:
   - entity: button
-    name: Factory reset
-    class: restart
+    translation_key: factory_reset
     category: config
     dps:
       - id: 9

+ 2 - 2
custom_components/tuya_local/devices/faroro_pet_feeder.yaml

@@ -31,8 +31,8 @@ secondary_entities:
           - dps_val: feeding
             value: Feeding
   - entity: button
-    name: Factory reset
-    class: restart
+    translation_key: factory_reset
+    category: config
     dps:
       - id: 9
         type: boolean

+ 1 - 2
custom_components/tuya_local/devices/gaqqee_kws302wf_energymeter.yaml

@@ -215,8 +215,7 @@ secondary_entities:
           min: 0
           max: 59
   - entity: button
-    name: Factory reset
-    class: restart
+    translation_key: factory_reset
     category: config
     dps:
       - id: 120

+ 1 - 2
custom_components/tuya_local/devices/ipettie_w5_petfeeder.yaml

@@ -41,8 +41,7 @@ secondary_entities:
           - dps_val: feeding
             value: Feeding
   - entity: button
-    name: Factory reset
-    class: restart
+    translation_key: factory_reset
     category: config
     dps:
       - id: 9

+ 8 - 1
custom_components/tuya_local/devices/me80_thermostat.yaml

@@ -109,7 +109,6 @@ primary_entity:
           conditions:
             - dps_val: false
               value: "off"
-    # 39 = factory reset (boolean but seems write only)
     - id: 45
       type: bitfield
       name: fault_code
@@ -329,3 +328,11 @@ secondary_entities:
         type: string
         name: temperature_unit
         hidden: true
+  - entity: button
+    translation_key: factory_reset
+    category: config
+    dps:
+      - id: 39
+        type: boolean
+        optional: true
+        name: button

+ 1 - 1
custom_components/tuya_local/devices/medion_s20_vacuum.yaml

@@ -176,7 +176,7 @@ secondary_entities:
           - dps_val: high
             value: high
   - entity: button
-    name: Factory reset
+    translation_key: factory_reset
     category: config
     dps:
       - id: 101

+ 1 - 2
custom_components/tuya_local/devices/modernflames_orion_fireplace.yaml

@@ -318,8 +318,7 @@ secondary_entities:
         type: boolean
         name: switch
   - entity: button
-    name: Factory reset
-    class: restart
+    translation_key: factory_reset
     category: config
     dps:
       - id: 121

+ 1 - 2
custom_components/tuya_local/devices/nashone_mts700wb_thermostat.yaml

@@ -76,9 +76,8 @@ secondary_entities:
           min: -5
           max: 5
   - entity: button
-    name: Factory reset
+    translation_key: factory_reset
     category: config
-    class: restart
     dps:
       - id: 39
         type: boolean

+ 1 - 2
custom_components/tuya_local/devices/petlibro_PLAF103_feeder.yaml

@@ -43,8 +43,7 @@ secondary_entities:
           min: 1
           max: 50
   - entity: button
-    name: Factory reset
-    class: restart
+    translation_key: factory_reset
     category: config
     dps:
       - id: 9

+ 1 - 2
custom_components/tuya_local/devices/pgst_pw150_alarm.yaml

@@ -172,8 +172,7 @@ secondary_entities:
           - dps_val: english
             value: english
   - entity: button
-    class: restart
-    name: Factory reset
+    translation_key: factory_reset
     category: config
     dps:
       - id: 34

+ 1 - 3
custom_components/tuya_local/devices/plikc_neve_thermostat.yaml

@@ -110,15 +110,13 @@ secondary_entities:
           min: 0
           max: 99
   - entity: button
-    name: Factory reset
-    class: restart
+    translation_key: factory_reset
     category: config
     dps:
       - id: 39
         type: boolean
         name: button
         optional: true
-        persist: false
   - entity: lock
     translation_key: child_lock
     category: config

+ 1 - 2
custom_components/tuya_local/devices/powerworld_pw58330_waterheater.yaml

@@ -312,8 +312,7 @@ secondary_entities:
         unit: rpm
         class: measurement
   - entity: button
-    name: Factory reset
-    class: restart
+    translation_key: factory_reset
     category: config
     dps:
       - id: 125

+ 1 - 2
custom_components/tuya_local/devices/powerworld_pw58410_hvaconly.yaml

@@ -182,8 +182,7 @@ secondary_entities:
         optional: true
         name: custom_fault_bit
   - entity: button
-    name: Factory reset
-    class: restart
+    translation_key: factory_reset
     category: config
     dps:
       - id: 125

+ 1 - 2
custom_components/tuya_local/devices/powerworld_pw58410_waterheater.yaml

@@ -173,8 +173,7 @@ secondary_entities:
         optional: true
         name: custom_fault_bit
   - entity: button
-    name: Factory reset
-    class: restart
+    translation_key: factory_reset
     category: config
     dps:
       - id: 125

+ 1 - 1
custom_components/tuya_local/devices/psmart_t436_thermostat.yaml

@@ -121,7 +121,7 @@ secondary_entities:
           min: -4
           max: 4
   - entity: button
-    name: Factory reset
+    translation_key: factory_reset
     category: config
     dps:
       - id: 39

+ 1 - 2
custom_components/tuya_local/devices/puppy_kitty_pet_feeder.yaml

@@ -25,8 +25,7 @@ secondary_entities:
         type: integer
         optional: true
   - entity: button
-    class: restart
-    name: Factory reset
+    translation_key: factory_reset
     category: config
     dps:
       - id: 24

+ 1 - 2
custom_components/tuya_local/devices/t5e_wf_thermostat.yaml

@@ -341,9 +341,8 @@ secondary_entities:
           - dps_val: 6_1
             value: 6 + 1
   - entity: button
-    name: Factory reset
+    translation_key: factory_reset
     category: config
-    class: restart
     dps:
       - id: 39
         type: boolean

+ 8 - 3
custom_components/tuya_local/devices/thermoval_tvt40_thermostat.yaml

@@ -55,9 +55,6 @@ primary_entity:
       type: string
       name: sensor_select
       hidden: true
-    - id: 21
-      name: factory_reset
-      type: boolean
     - id: 24
       name: hvac_action
       type: string
@@ -257,3 +254,11 @@ secondary_entities:
         type: integer
         class: measurement
         unit: h
+  - entity: button
+    translation_key: factory_reset
+    category: config
+    dps:
+      - id: 21
+        type: boolean
+        optional: true
+        name: button

+ 1 - 2
custom_components/tuya_local/devices/timeguard_wfpir.yaml

@@ -21,8 +21,7 @@ secondary_entities:
         type: boolean
         name: sensor
   - entity: button
-    name: Factory reset
-    class: restart
+    translation_key: factory_reset
     category: config
     dps:
       - id: 102

+ 1 - 2
custom_components/tuya_local/devices/tongou_qcb2_circuitbreaker.yaml

@@ -327,8 +327,7 @@ secondary_entities:
         type: boolean
         name: switch
   - entity: button
-    name: Factory reset
-    class: restart
+    translation_key: factory_reset
     category: config
     dps:
       - id: 113

+ 1 - 2
custom_components/tuya_local/devices/tongou_qcb2_singlephasebreaker.yaml

@@ -220,8 +220,7 @@ secondary_entities:
         type: boolean
         name: switch
   - entity: button
-    name: Factory reset
-    class: restart
+    translation_key: factory_reset
     category: config
     dps:
       - id: 113

+ 1 - 2
custom_components/tuya_local/devices/tongou_qcb2wb_breaker.yaml

@@ -315,8 +315,7 @@ secondary_entities:
         type: boolean
         name: switch
   - entity: button
-    name: Factory reset
-    class: restart
+    translation_key: factory_reset
     category: config
     dps:
       - id: 126

+ 1 - 2
custom_components/tuya_local/devices/ts106_alarm.yaml

@@ -77,8 +77,7 @@ primary_entity:
       name: alarm_linkage
 secondary_entities:
   - entity: button
-    name: Factory reset
-    class: restart
+    translation_key: factory_reset
     category: config
     dps:
       - id: 107

+ 1 - 2
custom_components/tuya_local/devices/vine_tj550_thermostat.yaml

@@ -328,8 +328,7 @@ secondary_entities:
           - dps_val: f
             value: fahrenheit
   - entity: button
-    name: Factory reset
-    class: restart
+    translation_key: factory_reset
     category: config
     dps:
       - id: 39

+ 1 - 2
custom_components/tuya_local/devices/wolfguard_wt2r_alarm.yaml

@@ -220,8 +220,7 @@ secondary_entities:
         name: switch
 
   - entity: button
-    name: Factory reset
-    class: restart
+    translation_key: factory_reset
     category: config
     dps:
       - id: 34

+ 1 - 2
custom_components/tuya_local/devices/yp_petfeeeder.yaml

@@ -26,8 +26,7 @@ secondary_entities:
         name: sensor
         type: integer
   - entity: button
-    class: restart
-    name: Factory reset
+    translation_key: factory_reset
     category: config
     dps:
       - id: 9

+ 1 - 2
custom_components/tuya_local/devices/zg205w_mmWave_presence_sensor.yaml

@@ -253,9 +253,8 @@ secondary_entities:
         type: boolean
         optional: true
   - entity: button
-    name: Factory reset
+    translation_key: factory_reset
     category: config
-    icon: mdi:restore-alert
     dps:
       - id: 115
         type: boolean

+ 1 - 2
custom_components/tuya_local/devices/zx_db11_doorbell_alarm.yaml

@@ -335,8 +335,7 @@ secondary_entities:
             value: 0
             icon: "mdi:volume-mute"
   - entity: button
-    name: Factory reset
-    class: restart
+    translation_key: factory_reset
     category: config
     dps:
       - id: 34

+ 1 - 2
custom_components/tuya_local/devices/zx_db11b_doorbell_alarm.yaml

@@ -329,8 +329,7 @@ secondary_entities:
             value: 0
             icon: "mdi:volume-mute"
   - entity: button
-    name: Factory reset
-    class: restart
+    translation_key: factory_reset
     category: config
     dps:
       - id: 34

+ 1 - 2
custom_components/tuya_local/devices/zx_g30_alarm.yaml

@@ -162,8 +162,7 @@ secondary_entities:
         type: boolean
         name: switch
   - entity: button
-    name: Factory reset
-    class: restart
+    translation_key: factory_reset
     category: config
     dps:
       - id: 34

+ 5 - 0
custom_components/tuya_local/icons.json

@@ -26,6 +26,11 @@
                 }
             }
         },
+        "button": {
+            "factory_reset": {
+                "default": "mdi:cog-refresh"
+            }
+        },
         "climate": {
             "heater": {
                 "default": "mdi:radiator",

+ 5 - 0
custom_components/tuya_local/translations/bg.json

@@ -146,6 +146,11 @@
                 }
             }
         },
+        "button": {
+            "factory_reset": {
+                "name": "Фабричен ресет"
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {

+ 5 - 0
custom_components/tuya_local/translations/cz.json

@@ -146,6 +146,11 @@
                 }
             }
         },
+        "button": {
+            "factory_reset": {
+                "name": "Obnovení továrního nastavení"
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {

+ 5 - 0
custom_components/tuya_local/translations/de.json

@@ -146,6 +146,11 @@
                 }
             }
         },
+        "button": {
+            "factory_reset": {
+                "name": "Werkseinstellungen"
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {

+ 5 - 0
custom_components/tuya_local/translations/el.json

@@ -146,6 +146,11 @@
                 }
             }
         },
+        "button": {
+            "factory_reset": {
+                "name": "Επαναφορά εργοστασιακών ρυθμίσεων"
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {

+ 5 - 0
custom_components/tuya_local/translations/en.json

@@ -146,6 +146,11 @@
                 }
             }
         },
+        "button": {
+            "factory_reset": {
+                "name": "Factory reset"
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {

+ 5 - 0
custom_components/tuya_local/translations/es.json

@@ -146,6 +146,11 @@
                 }
             }
         },
+        "button": {
+            "factory_reset": {
+                "name": "Restablecimiento de fábrica"
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {

+ 5 - 0
custom_components/tuya_local/translations/fr.json

@@ -146,6 +146,11 @@
                 }
             }
         },
+        "button": {
+            "factory_reset": {
+                "name": "Réinitialisation d'usine"
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {

+ 5 - 0
custom_components/tuya_local/translations/hu.json

@@ -146,6 +146,11 @@
                 }
             }
         },
+        "button": {
+            "factory_reset": {
+                "name": "Gyári visszaállítás"
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {

+ 5 - 0
custom_components/tuya_local/translations/id.json

@@ -146,6 +146,11 @@
                 }
             }
         },
+        "button": {
+            "factory_reset": {
+                "name": "Reset pabrik"
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {

+ 5 - 0
custom_components/tuya_local/translations/it.json

@@ -146,6 +146,11 @@
                 }
             }
         },
+        "button": {
+            "factory_reset": {
+                "name": "Ripristino alle impostazioni di fabbrica"
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {

+ 5 - 0
custom_components/tuya_local/translations/ja.json

@@ -146,6 +146,11 @@
                 }
             }
         },
+        "button": {
+            "factory_reset": {
+                "name": "工場出荷時設定"
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {

+ 5 - 0
custom_components/tuya_local/translations/no-NB.json

@@ -146,6 +146,11 @@
                 }
             }
         },
+        "button": {
+            "factory_reset": {
+                "name": "Fabrikkinnstilling"
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {

+ 5 - 0
custom_components/tuya_local/translations/pl.json

@@ -146,6 +146,11 @@
                 }
             }
         },
+        "button": {
+            "factory_reset": {
+                "name": "Przywrócenie ustawień fabrycznych"
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {

+ 5 - 0
custom_components/tuya_local/translations/pt-BR.json

@@ -146,6 +146,11 @@
                 }
             }
         },
+        "button": {
+            "factory_reset": {
+                "name": "Redefinição de fábrica"
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {

+ 5 - 0
custom_components/tuya_local/translations/ru.json

@@ -146,6 +146,11 @@
                 }
             }
         },
+        "button": {
+            "factory_reset": {
+                "name": "Сброс настроек"
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {

+ 5 - 0
custom_components/tuya_local/translations/uk.json

@@ -146,6 +146,11 @@
                 }
             }
         },
+        "button": {
+            "factory_reset": {
+                "name": "Скидання до заводських налаштувань"
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {

+ 5 - 0
custom_components/tuya_local/translations/ur.json

@@ -146,6 +146,11 @@
                 }
             }
         },
+        "button": {
+            "factory_reset": {
+                "name": "فیکٹری ری سیٹ"
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {

+ 5 - 0
custom_components/tuya_local/translations/zh-Hans.json

@@ -146,6 +146,11 @@
                 }
             }
         },
+        "button": {
+            "factory_reset": {
+                "name": "恢复出厂设置"
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {

+ 5 - 0
custom_components/tuya_local/translations/zh-Hant.json

@@ -146,6 +146,11 @@
                 }
             }
         },
+        "button": {
+            "factory_reset": {
+                "name": "恢復出廠設置"
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {