Parcourir la source

Translations: placeholders must be strings

- fix issues in last change
Jason Rumney il y a 1 an
Parent
commit
172b1da22e
51 fichiers modifiés avec 162 ajouts et 162 suppressions
  1. 4 4
      custom_components/tuya_local/devices/arlec_pb88uha_s2_switch.yaml
  2. 2 2
      custom_components/tuya_local/devices/aubess_2gang_switch.yaml
  3. 5 5
      custom_components/tuya_local/devices/bauhn_ap5w0624_powerstrip.yaml
  4. 3 3
      custom_components/tuya_local/devices/blitzwolf_bwshp9_powerstrip.yaml
  5. 2 2
      custom_components/tuya_local/devices/brilliant_double_switch.yaml
  6. 4 4
      custom_components/tuya_local/devices/brilliant_quad_powerstrip_usb.yaml
  7. 4 4
      custom_components/tuya_local/devices/brilliant_quad_switch.yaml
  8. 3 3
      custom_components/tuya_local/devices/brilliant_triple_switch.yaml
  9. 2 2
      custom_components/tuya_local/devices/digoo_dgsp202.yaml
  10. 2 2
      custom_components/tuya_local/devices/diivoo_wt05.yaml
  11. 2 2
      custom_components/tuya_local/devices/dual_power_monitor_smartplug.yaml
  12. 2 2
      custom_components/tuya_local/devices/dual_power_monitor_smartplugv2.yaml
  13. 4 4
      custom_components/tuya_local/devices/energy_monitoring_powerstrip.yaml
  14. 3 3
      custom_components/tuya_local/devices/es01_powerstrip.yaml
  15. 3 3
      custom_components/tuya_local/devices/gosund_usb_triple_powerstrip.yaml
  16. 2 2
      custom_components/tuya_local/devices/grid_connect_double_switch.yaml
  17. 2 2
      custom_components/tuya_local/devices/grid_connect_usb_double_power_point.yaml
  18. 4 4
      custom_components/tuya_local/devices/logicom_powerstrip.yaml
  19. 2 2
      custom_components/tuya_local/devices/loratap_dual_switch.yaml
  20. 2 2
      custom_components/tuya_local/devices/makegood_double_power_point_with_energy.yaml
  21. 2 2
      custom_components/tuya_local/devices/makegood_switch_dual_timer-energy.yaml
  22. 5 5
      custom_components/tuya_local/devices/mirabella_power_strip.yaml
  23. 3 3
      custom_components/tuya_local/devices/moes_controlpanel.yaml
  24. 4 4
      custom_components/tuya_local/devices/moes_quad_switch.yaml
  25. 2 2
      custom_components/tuya_local/devices/moes_temp_humidity.yaml
  26. 4 4
      custom_components/tuya_local/devices/novadigital_quad_switch.yaml
  27. 4 4
      custom_components/tuya_local/devices/powerstrip_4outlet_usbs.yaml
  28. 2 2
      custom_components/tuya_local/devices/powerstrip_6outlet_usbs.yaml
  29. 3 3
      custom_components/tuya_local/devices/qnect_usb_powerstrip.yaml
  30. 4 4
      custom_components/tuya_local/devices/quad_power_timer.yaml
  31. 4 4
      custom_components/tuya_local/devices/quad_powerstrip.yaml
  32. 4 4
      custom_components/tuya_local/devices/quad_powerstrip_usb.yaml
  33. 7 7
      custom_components/tuya_local/devices/seven_channel_switch.yaml
  34. 2 2
      custom_components/tuya_local/devices/simple_dual_switch.yaml
  35. 2 2
      custom_components/tuya_local/devices/simple_dual_switch_timer.yaml
  36. 2 2
      custom_components/tuya_local/devices/simple_dual_switch_timer_v2.yaml
  37. 8 8
      custom_components/tuya_local/devices/simple_eight_switch.yaml
  38. 4 4
      custom_components/tuya_local/devices/simple_quad_switch.yaml
  39. 6 6
      custom_components/tuya_local/devices/simple_six_switch.yaml
  40. 3 3
      custom_components/tuya_local/devices/simple_triple_switch.yaml
  41. 3 3
      custom_components/tuya_local/devices/simple_triple_switch_timer.yaml
  42. 4 4
      custom_components/tuya_local/devices/smart_multi_plug_4t_4usb.yaml
  43. 4 4
      custom_components/tuya_local/devices/smart_powerstrip.yaml
  44. 3 3
      custom_components/tuya_local/devices/smart_powerstrip_3_outlet_energy.yaml
  45. 2 2
      custom_components/tuya_local/devices/smart_surge_protector_plug_2x2.yaml
  46. 2 2
      custom_components/tuya_local/devices/somgom_double_switch.yaml
  47. 2 2
      custom_components/tuya_local/devices/teckin_ss42_sockets.yaml
  48. 4 4
      custom_components/tuya_local/devices/usb_4way_powerstrip.yaml
  49. 2 2
      custom_components/tuya_local/devices/wfws02rj_dual_switch.yaml
  50. 3 3
      custom_components/tuya_local/devices/woox_r4028_powerstrip.yaml
  51. 1 1
      custom_components/tuya_local/translations/fr.json

+ 4 - 4
custom_components/tuya_local/devices/arlec_pb88uha_s2_switch.yaml

@@ -6,7 +6,7 @@ primary_entity:
   entity: switch
   translation_key: outlet_x
   translation_placeholders:
-    x: 1
+    x: "1"
   class: outlet
   dps:
     - id: 1
@@ -16,7 +16,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 2
+      x: "2"
     class: outlet
     dps:
       - id: 2
@@ -25,7 +25,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 3
+      x: "3"
     class: outlet
     dps:
       - id: 3
@@ -34,7 +34,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 4
+      x: "4"
     class: outlet
     dps:
       - id: 4

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

@@ -6,7 +6,7 @@ primary_entity:
   entity: switch
   translation_key: switch_x
   translation_placeholders:
-    x: 1
+    x: "1"
   dps:
     - id: 1
       name: switch
@@ -28,7 +28,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 2
+      x: "2"
     dps:
       - id: 2
         name: switch

+ 5 - 5
custom_components/tuya_local/devices/bauhn_ap5w0624_powerstrip.yaml

@@ -6,7 +6,7 @@ primary_entity:
   entity: switch
   translation_key: outlet_x
   translation_placeholders:
-    x: 1
+    x: "1"
   class: outlet
   dps:
     - id: 1
@@ -16,7 +16,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 2
+      x: "2"
     class: outlet
     dps:
       - id: 2
@@ -25,7 +25,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 3
+      x: "3"
     class: outlet
     dps:
       - id: 3
@@ -34,7 +34,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 4
+      x: "4"
     class: outlet
     dps:
       - id: 4
@@ -43,7 +43,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 5
+      x: "5"
     icon: mdi:power-socket-au
     class: outlet
     dps:

+ 3 - 3
custom_components/tuya_local/devices/blitzwolf_bwshp9_powerstrip.yaml

@@ -7,7 +7,7 @@ primary_entity:
   class: outlet
   translation_key: outlet_x
   translation_placeholders:
-    x: 1
+    x: "1"
   dps:
     - id: 1
       type: boolean
@@ -16,7 +16,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 2
+      x: "2"
     class: outlet
     dps:
       - id: 2
@@ -25,7 +25,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 3
+      x: "3"
     class: outlet
     dps:
       - id: 3

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

@@ -7,7 +7,7 @@ primary_entity:
   class: switch
   translation_key: switch_x
   translation_placeholders:
-    x: 1
+    x: "1"
   dps:
     - id: 1
       type: boolean
@@ -17,7 +17,7 @@ secondary_entities:
     class: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 2
+      x: "2"
     dps:
       - id: 2
         type: boolean

+ 4 - 4
custom_components/tuya_local/devices/brilliant_quad_powerstrip_usb.yaml

@@ -6,7 +6,7 @@ primary_entity:
   entity: switch
   translation_key: outlet_x
   translation_placeholders:
-    x: 1
+    x: "1"
   class: outlet
   dps:
     - id: 1
@@ -16,7 +16,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 2
+      x: "2"
     class: outlet
     dps:
       - id: 2
@@ -25,7 +25,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 3
+      x: "3"
     class: outlet
     dps:
       - id: 3
@@ -34,7 +34,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 4
+      x: "4"
     class: outlet
     dps:
       - id: 4

+ 4 - 4
custom_components/tuya_local/devices/brilliant_quad_switch.yaml

@@ -7,7 +7,7 @@ primary_entity:
   class: switch
   translation_key: switch_x
   translation_placeholders:
-    x: 1
+    x: "1"
   dps:
     - id: 1
       type: boolean
@@ -17,7 +17,7 @@ secondary_entities:
     class: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 2
+      x: "2"
     dps:
       - id: 2
         type: boolean
@@ -26,7 +26,7 @@ secondary_entities:
     class: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 3
+      x: "3"
     dps:
       - id: 3
         type: boolean
@@ -35,7 +35,7 @@ secondary_entities:
     class: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 4
+      x: "4"
     dps:
       - id: 4
         type: boolean

+ 3 - 3
custom_components/tuya_local/devices/brilliant_triple_switch.yaml

@@ -7,7 +7,7 @@ primary_entity:
   class: switch
   translation_key: switch_x
   translation_placeholders:
-    x: 1
+    x: "1"
   dps:
     - id: 1
       type: boolean
@@ -17,7 +17,7 @@ secondary_entities:
     class: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 2
+      x: "2"
     dps:
       - id: 2
         type: boolean
@@ -26,7 +26,7 @@ secondary_entities:
     class: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 3
+      x: "3"
     dps:
       - id: 3
         type: boolean

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

@@ -4,7 +4,7 @@ primary_entity:
   class: outlet
   translation_key: outlet_x
   translation_placeholders:
-    x: 1
+    x: "1"
   dps:
     - id: 1
       type: boolean
@@ -13,7 +13,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 2
+      x: "2"
     class: outlet
     dps:
       - id: 2

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

@@ -35,7 +35,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 1
+      x: "1"
     category: config
     deprecated: valve
     icon: "mdi:pipe-valve"
@@ -46,7 +46,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 2
+      x: "2"
     category: config
     deprecated: valve
     icon: "mdi:pipe-valve"

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

@@ -3,7 +3,7 @@ primary_entity:
   entity: switch
   translation_key: outlet_x
   translation_placeholders:
-    x: 1
+    x: "1"
   class: outlet
   dps:
     - id: 1
@@ -17,7 +17,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 2
+      x: "2"
     class: outlet
     dps:
       - id: 2

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

@@ -8,7 +8,7 @@ primary_entity:
   entity: switch
   translation_key: outlet_x
   translation_placeholders:
-    x: 1
+    x: "1"
   class: outlet
   dps:
     - id: 1
@@ -34,7 +34,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 2
+      x: "2"
     class: outlet
     dps:
       - id: 2

+ 4 - 4
custom_components/tuya_local/devices/energy_monitoring_powerstrip.yaml

@@ -5,7 +5,7 @@ primary_entity:
   entity: switch
   translation_key: switch_x
   translation_placeholders:
-    x: 1
+    x: "1"
   class: outlet
   dps:
     - id: 1
@@ -30,7 +30,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 2
+      x: "2"
     class: outlet
     dps:
       - id: 2
@@ -39,7 +39,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 3
+      x: "3"
     class: outlet
     dps:
       - id: 3
@@ -48,7 +48,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 4
+      x: "4"
     class: outlet
     dps:
       - id: 4

+ 3 - 3
custom_components/tuya_local/devices/es01_powerstrip.yaml

@@ -6,7 +6,7 @@ primary_entity:
   class: outlet
   translation_key: switch_x
   translation_placeholders:
-    x: 1
+    x: "1"
   dps:
     - id: 1
       type: boolean
@@ -15,7 +15,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 2
+      x: "2"
     class: outlet
     dps:
       - id: 2
@@ -24,7 +24,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 3
+      x: "3"
     class: outlet
     dps:
       - id: 3

+ 3 - 3
custom_components/tuya_local/devices/gosund_usb_triple_powerstrip.yaml

@@ -7,7 +7,7 @@ primary_entity:
   class: outlet
   translation_key: outlet_x
   translation_placeholders:
-    x: 1
+    x: "1"
   dps:
     - id: 1
       type: boolean
@@ -16,7 +16,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 2
+      x: "2"
     class: outlet
     dps:
       - id: 2
@@ -25,7 +25,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 3
+      x: "3"
     class: outlet
     dps:
       - id: 3

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

@@ -3,7 +3,7 @@ primary_entity:
   entity: switch
   translation_key: outlet_x
   translation_placeholders:
-    x: 1
+    x: "1"
   class: switch
   dps:
     - id: 1
@@ -22,7 +22,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 2
+      x: "2"
     class: switch
     dps:
       - id: 2

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

@@ -23,7 +23,7 @@ secondary_entities:
     class: outlet
     translation_key: outlet_x
     translation_placeholders:
-      x: 1
+      x: "1"
     dps:
       - id: 1
         name: switch
@@ -32,7 +32,7 @@ secondary_entities:
     class: outlet
     translation_key: outlet_x
     translation_placeholders:
-      x: 2
+      x: "2"
     dps:
       - id: 2
         name: switch

+ 4 - 4
custom_components/tuya_local/devices/logicom_powerstrip.yaml

@@ -3,7 +3,7 @@ primary_entity:
   entity: switch
   translation_key: outlet_x
   translation_placeholders:
-    x: 1
+    x: "1"
   class: outlet
   dps:
     - id: 1
@@ -13,7 +13,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 2
+      x: "2"
     class: outlet
     dps:
       - id: 2
@@ -22,7 +22,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 3
+      x: "3"
     class: outlet
     dps:
       - id: 3
@@ -31,7 +31,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 4
+      x: "4"
     class: outlet
     dps:
       - id: 4

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

@@ -6,7 +6,7 @@ primary_entity:
   entity: switch
   translation_key: switch_x
   translation_placeholders:
-    x: 1
+    x: "1"
   dps:
     - id: 1
       name: switch
@@ -15,7 +15,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 2
+      x: "2"
     dps:
       - id: 2
         name: switch

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

@@ -4,7 +4,7 @@ primary_entity:
   class: outlet
   translation_key: outlet_x
   translation_placeholders:
-    x: 1
+    x: "1"
   dps:
     - id: 12
       type: boolean
@@ -13,7 +13,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 2
+      x: "2"
     class: outlet
     dps:
       - id: 13

+ 2 - 2
custom_components/tuya_local/devices/makegood_switch_dual_timer-energy.yaml

@@ -6,7 +6,7 @@ primary_entity:
   entity: switch
   translation_key: switch_x
   translation_placeholders:
-    x: 1
+    x: "1"
   dps:
     - id: 1
       type: boolean
@@ -15,7 +15,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 2
+      x: "2"
     dps:
       - id: 2
         type: boolean

+ 5 - 5
custom_components/tuya_local/devices/mirabella_power_strip.yaml

@@ -6,7 +6,7 @@ primary_entity:
   entity: switch
   translation_key: outlet_x
   translation_placeholders:
-    x: 1
+    x: "1"
   class: outlet
   dps:
     - id: 1
@@ -16,7 +16,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 2
+      x: "2"
     class: outlet
     dps:
       - id: 2
@@ -25,7 +25,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 3
+      x: "3"
     class: outlet
     dps:
       - id: 3
@@ -34,7 +34,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 4
+      x: "4"
     class: outlet
     dps:
       - id: 4
@@ -43,7 +43,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 5
+      x: "5"
     class: outlet
     dps:
       - id: 5

+ 3 - 3
custom_components/tuya_local/devices/moes_controlpanel.yaml

@@ -6,7 +6,7 @@ primary_entity:
   entity: switch
   translation_key: switch_x
   translation_placeholders:
-    x: 1
+    x: "1"
   dps:
     - id: 16
       type: boolean
@@ -26,7 +26,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 2
+      x: "2"
     dps:
       - id: 17
         type: boolean
@@ -34,7 +34,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 3
+      x: "3"
     dps:
       - id: 3
         type: boolean

+ 4 - 4
custom_components/tuya_local/devices/moes_quad_switch.yaml

@@ -6,7 +6,7 @@ primary_entity:
   entity: switch
   translation_key: switch_x
   translation_placeholders:
-    x: 1
+    x: "1"
   dps:
     - id: 1
       type: boolean
@@ -22,7 +22,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 2
+      x: "2"
     dps:
       - id: 2
         type: boolean
@@ -30,7 +30,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 3
+      x: "3"
     dps:
       - id: 3
         type: boolean
@@ -38,7 +38,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 4
+      x: "4"
     dps:
       - id: 4
         type: boolean

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

@@ -21,7 +21,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 1
+      x: "1"
     dps:
       - id: 2
         type: boolean
@@ -33,7 +33,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 2
+      x: "2"
     dps:
       - id: 3
         type: boolean

+ 4 - 4
custom_components/tuya_local/devices/novadigital_quad_switch.yaml

@@ -9,7 +9,7 @@ primary_entity:
   entity: switch
   translation_key: switch_x
   translation_placeholders:
-    x: 1
+    x: "1"
   dps:
     - id: 1
       name: switch
@@ -18,7 +18,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 2
+      x: "2"
     dps:
       - id: 2
         name: switch
@@ -26,7 +26,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 3
+      x: "3"
     dps:
       - id: 3
         name: switch
@@ -34,7 +34,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 4
+      x: "4"
     dps:
       - id: 4
         name: switch

+ 4 - 4
custom_components/tuya_local/devices/powerstrip_4outlet_usbs.yaml

@@ -3,7 +3,7 @@ primary_entity:
   entity: switch
   translation_key: outlet_x
   translation_placeholders:
-    x: 1
+    x: "1"
   class: outlet
   dps:
     - id: 1
@@ -13,7 +13,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 2
+      x: "2"
     class: outlet
     dps:
       - id: 2
@@ -22,7 +22,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 3
+      x: "3"
     class: outlet
     dps:
       - id: 3
@@ -31,7 +31,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 4
+      x: "4"
     class: outlet
     dps:
       - id: 4

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

@@ -6,7 +6,7 @@ primary_entity:
   entity: switch
   translation_key: switch_x
   translation_placeholders:
-    x: 1
+    x: "1"
   class: outlet
   dps:
     - id: 1
@@ -19,7 +19,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 2
+      x: "2"
     class: outlet
     dps:
       - id: 2

+ 3 - 3
custom_components/tuya_local/devices/qnect_usb_powerstrip.yaml

@@ -6,7 +6,7 @@ primary_entity:
   entity: switch
   translation_key: outlet_x
   translation_placeholders:
-    x: 1
+    x: "1"
   class: outlet
   dps:
     - id: 1
@@ -16,7 +16,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 2
+      x: "2"
     class: outlet
     dps:
       - id: 2
@@ -25,7 +25,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 3
+      x: "3"
     class: outlet
     dps:
       - id: 3

+ 4 - 4
custom_components/tuya_local/devices/quad_power_timer.yaml

@@ -6,7 +6,7 @@ primary_entity:
   entity: switch
   translation_key: outlet_x
   translation_placeholders:
-    x: 1
+    x: "1"
   class: outlet
   dps:
     - id: 1
@@ -16,7 +16,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 2
+      x: "2"
     class: outlet
     dps:
       - id: 2
@@ -25,7 +25,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 3
+      x: "3"
     class: outlet
     dps:
       - id: 3
@@ -34,7 +34,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 4
+      x: "4"
     class: outlet
     dps:
       - id: 4

+ 4 - 4
custom_components/tuya_local/devices/quad_powerstrip.yaml

@@ -6,7 +6,7 @@ primary_entity:
   entity: switch
   translation_key: outlet_x
   translation_placeholders:
-    x: 1
+    x: "1"
   class: outlet
   dps:
     - id: 1
@@ -24,7 +24,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 2
+      x: "2"
     class: outlet
     dps:
       - id: 2
@@ -33,7 +33,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 3
+      x: "3"
     class: outlet
     dps:
       - id: 3
@@ -42,7 +42,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 4
+      x: "4"
     class: outlet
     dps:
       - id: 4

+ 4 - 4
custom_components/tuya_local/devices/quad_powerstrip_usb.yaml

@@ -3,7 +3,7 @@ primary_entity:
   entity: switch
   translation_key: outlet_x
   translation_placeholders:
-    x: 1
+    x: "1"
   class: outlet
   dps:
     - id: 1
@@ -21,7 +21,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 2
+      x: "2"
     class: outlet
     dps:
       - id: 2
@@ -30,7 +30,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 3
+      x: "3"
     class: outlet
     dps:
       - id: 3
@@ -39,7 +39,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 4
+      x: "4"
     class: outlet
     dps:
       - id: 4

+ 7 - 7
custom_components/tuya_local/devices/seven_channel_switch.yaml

@@ -6,7 +6,7 @@ primary_entity:
   entity: switch
   translation_key: switch_x
   translation_placeholders:
-    x: 1
+    x: "1"
   dps:
     - id: 1
       type: boolean
@@ -15,7 +15,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 2
+      x: "2"
     dps:
       - id: 2
         type: boolean
@@ -23,7 +23,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 3
+      x: "3"
     dps:
       - id: 3
         type: boolean
@@ -31,7 +31,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 4
+      x: "4"
     dps:
       - id: 4
         type: boolean
@@ -39,7 +39,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 5
+      x: "5"
     dps:
       - id: 5
         type: boolean
@@ -47,7 +47,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 6
+      x: "6"
     dps:
       - id: 6
         type: boolean
@@ -55,7 +55,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 7
+      x: "7"
     dps:
       - id: 7
         type: boolean

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

@@ -6,7 +6,7 @@ primary_entity:
   entity: switch
   translation_key: switch_x
   translation_placeholders:
-    x: 1
+    x: "1"
   dps:
     - id: 1
       type: boolean
@@ -15,7 +15,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 2
+      x: "2"
     dps:
       - id: 2
         type: boolean

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

@@ -5,7 +5,7 @@ primary_entity:
   entity: switch
   translation_key: switch_x
   translation_placeholders:
-    x: 1
+    x: "1"
   dps:
     - id: 1
       type: boolean
@@ -14,7 +14,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 2
+      x: "2"
     dps:
       - id: 2
         type: boolean

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

@@ -6,7 +6,7 @@ primary_entity:
   entity: switch
   translation_key: switch_x
   translation_placeholders:
-    x: 1
+    x: "1"
   dps:
     - id: 1
       type: boolean
@@ -15,7 +15,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 2
+      x: "2"
     dps:
       - id: 2
         type: boolean

+ 8 - 8
custom_components/tuya_local/devices/simple_eight_switch.yaml

@@ -3,7 +3,7 @@ primary_entity:
   entity: switch
   translation_key: switch_x
   translation_placeholders:
-    x: 1
+    x: "1"
   dps:
     - id: 1
       name: switch
@@ -12,7 +12,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 2
+      x: "2"
     dps:
       - id: 2
         name: switch
@@ -20,7 +20,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 3
+      x: "3"
     dps:
       - id: 3
         name: switch
@@ -28,7 +28,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 4
+      x: "4"
     dps:
       - id: 4
         name: switch
@@ -36,7 +36,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 5
+      x: "5"
     dps:
       - id: 5
         name: switch
@@ -44,7 +44,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 6
+      x: "6"
     dps:
       - id: 6
         name: switch
@@ -52,7 +52,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 7
+      x: "7"
     dps:
       - id: 101
         name: switch
@@ -60,7 +60,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 8
+      x: "8"
     dps:
       - id: 102
         name: switch

+ 4 - 4
custom_components/tuya_local/devices/simple_quad_switch.yaml

@@ -3,7 +3,7 @@ primary_entity:
   entity: switch
   translation_key: switch_x
   translation_placeholders:
-    x: 1
+    x: "1"
   dps:
     - id: 1
       name: switch
@@ -12,7 +12,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 2
+      x: "2"
     dps:
       - id: 2
         name: switch
@@ -20,7 +20,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 3
+      x: "3"
     dps:
       - id: 3
         name: switch
@@ -28,7 +28,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 4
+      x: "4"
     dps:
       - id: 4
         name: switch

+ 6 - 6
custom_components/tuya_local/devices/simple_six_switch.yaml

@@ -3,7 +3,7 @@ primary_entity:
   entity: switch
   translation_key: switch_x
   translation_placeholders:
-    x: 1
+    x: "1"
   dps:
     - id: 1
       name: switch
@@ -12,7 +12,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 2
+      x: "2"
     dps:
       - id: 2
         name: switch
@@ -20,7 +20,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 3
+      x: "3"
     dps:
       - id: 3
         name: switch
@@ -28,7 +28,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 4
+      x: "4"
     dps:
       - id: 4
         name: switch
@@ -36,7 +36,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 5
+      x: "5"
     dps:
       - id: 5
         name: switch
@@ -44,7 +44,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 6
+      x: "6"
     dps:
       - id: 6
         name: switch

+ 3 - 3
custom_components/tuya_local/devices/simple_triple_switch.yaml

@@ -3,7 +3,7 @@ primary_entity:
   entity: switch
   translation_key: switch_x
   translation_placeholders:
-    x: 1
+    x: "1"
   dps:
     - id: 1
       name: switch
@@ -12,7 +12,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 2
+      x: "2"
     dps:
       - id: 2
         name: switch
@@ -20,7 +20,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 3
+      x: "3"
     dps:
       - id: 3
         name: switch

+ 3 - 3
custom_components/tuya_local/devices/simple_triple_switch_timer.yaml

@@ -6,7 +6,7 @@ primary_entity:
   entity: switch
   translation_key: switch_x
   translation_placeholders:
-    x: 1
+    x: "1"
   dps:
     - id: 1
       name: switch
@@ -15,7 +15,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 2
+      x: "2"
     dps:
       - id: 2
         name: switch
@@ -23,7 +23,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 3
+      x: "3"
     dps:
       - id: 3
         name: switch

+ 4 - 4
custom_components/tuya_local/devices/smart_multi_plug_4t_4usb.yaml

@@ -6,7 +6,7 @@ primary_entity:
   entity: switch
   translation_key: outlet_x
   translation_placeholders:
-    x: 1
+    x: "1"
   class: outlet
   dps:
     - id: 1
@@ -24,7 +24,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 2
+      x: "2"
     dps:
       - id: 2
         type: boolean
@@ -32,7 +32,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 3
+      x: "3"
     dps:
       - id: 3
         type: boolean
@@ -40,7 +40,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 4
+      x: "4"
     dps:
       - id: 4
         type: boolean

+ 4 - 4
custom_components/tuya_local/devices/smart_powerstrip.yaml

@@ -6,7 +6,7 @@ primary_entity:
   entity: switch
   translation_key: outlet_x
   translation_placeholders:
-    x: 1
+    x: "1"
   class: outlet
   dps:
     - id: 1
@@ -16,7 +16,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 2
+      x: "2"
     class: outlet
     dps:
       - id: 2
@@ -25,7 +25,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 3
+      x: "3"
     class: outlet
     dps:
       - id: 3
@@ -34,7 +34,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 4
+      x: "4"
     class: outlet
     dps:
       - id: 4

+ 3 - 3
custom_components/tuya_local/devices/smart_powerstrip_3_outlet_energy.yaml

@@ -7,7 +7,7 @@ primary_entity:
   class: outlet
   translation_key: outlet_x
   translation_placeholders:
-    x: 1
+    x: "1"
   dps:
     - id: 1
       type: boolean
@@ -25,7 +25,7 @@ secondary_entities:
     class: outlet
     translation_key: outlet_x
     translation_placeholders:
-      x: 2
+      x: "2"
     dps:
       - id: 2
         type: boolean
@@ -34,7 +34,7 @@ secondary_entities:
     class: outlet
     translation_key: outlet_x
     translation_placeholders:
-      x: 3
+      x: "3"
     dps:
       - id: 3
         type: boolean

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

@@ -7,7 +7,7 @@ primary_entity:
   class: outlet
   translation_key: outlet_x
   translation_placeholders:
-    x: 1
+    x: "1"
   dps:
     - id: 1
       name: switch
@@ -17,7 +17,7 @@ secondary_entities:
     class: outlet
     translation_key: outlet_x
     translation_placeholders:
-      x: 2
+      x: "2"
     dps:
       - id: 2
         name: switch

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

@@ -3,7 +3,7 @@ primary_entity:
   entity: switch
   translation_key: switch_x
   translation_placeholders:
-    x: 1
+    x: "1"
   dps:
     - id: 1
       name: switch
@@ -12,7 +12,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 2
+      x: "2"
     dps:
       - id: 2
         name: switch

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

@@ -4,7 +4,7 @@ primary_entity:
   class: outlet
   translation_key: outlet_x
   translation_placeholders:
-    x: 1
+    x: "1"
   dps:
     - id: 1
       type: boolean
@@ -14,7 +14,7 @@ secondary_entities:
     class: outlet
     translation_key: outlet_x
     translation_placeholders:
-      x: 2
+      x: "2"
     dps:
       - id: 2
         type: boolean

+ 4 - 4
custom_components/tuya_local/devices/usb_4way_powerstrip.yaml

@@ -6,7 +6,7 @@ primary_entity:
   entity: switch
   translation_key: outlet_x
   translation_placeholders:
-    x: 1
+    x: "1"
   class: outlet
   dps:
     - id: 1
@@ -16,7 +16,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 2
+      x: "2"
     class: outlet
     dps:
       - id: 2
@@ -25,7 +25,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 3
+      x: "3"
     class: outlet
     dps:
       - id: 3
@@ -34,7 +34,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 4
+      x: "4"
     class: outlet
     dps:
       - id: 4

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

@@ -20,7 +20,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 1
+      x: "1"
     class: switch
     dps:
       - id: 1
@@ -29,7 +29,7 @@ secondary_entities:
   - entity: switch
     translation_key: switch_x
     translation_placeholders:
-      x: 2
+      x: "2"
     class: switch
     dps:
       - id: 2

+ 3 - 3
custom_components/tuya_local/devices/woox_r4028_powerstrip.yaml

@@ -4,7 +4,7 @@ primary_entity:
   entity: switch
   translation_key: outlet_x
   translation_placeholders:
-    x: 1
+    x: "1"
   class: outlet
   dps:
     - id: 1
@@ -14,7 +14,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 2
+      x: "2"
     class: outlet
     dps:
       - id: 2
@@ -23,7 +23,7 @@ secondary_entities:
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
-      x: 3
+      x: "3"
     class: outlet
     dps:
       - id: 3

+ 1 - 1
custom_components/tuya_local/translations/fr.json

@@ -644,7 +644,7 @@
             "keytone": {
                 "name": "Tonalité des touches"
             },
-            outlet_x": {
+            "outlet_x": {
                 "name": "Prise {x}"
             },
             "sleep": {