Skip to content

Commit

Permalink
Use translations for select timer options.
Browse files Browse the repository at this point in the history
Issue #1708
  • Loading branch information
make-all committed Aug 22, 2024
1 parent e3a0c0c commit ff57e64
Show file tree
Hide file tree
Showing 151 changed files with 2,310 additions and 1,534 deletions.
50 changes: 25 additions & 25 deletions custom_components/tuya_local/devices/AlecoAir_D25_Traditio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,52 +104,52 @@ secondary_entities:
name: option
mapping:
- dps_val: cancel
value: "Off"
value: cancel
- dps_val: 1h
value: 1 hour
value: 1h
- dps_val: 2h
value: 2 hours
value: 2h
- dps_val: 3h
value: 3 hours
value: 3h
- dps_val: 4h
value: 4 hours
value: 4h
- dps_val: 5h
value: 5 hours
value: 5h
- dps_val: 6h
value: 6 hours
value: 6h
- dps_val: 7h
value: 7 hours
value: 7h
- dps_val: 8h
value: 8 hours
value: 8h
- dps_val: 9h
value: 9 hours
value: 9h
- dps_val: 10h
value: 10 hours
value: 10h
- dps_val: 11h
value: 11 hours
value: 11h
- dps_val: 12h
value: 12 hours
value: 12h
- dps_val: 13h
value: 13 hours
value: 13h
- dps_val: 14h
value: 14 hours
value: 14h
- dps_val: 15h
value: 15 hours
value: 15h
- dps_val: 16h
value: 16 hours
value: 16h
- dps_val: 17h
value: 17 hours
value: 17h
- dps_val: 18h
value: 18 hours
value: 18h
- dps_val: 19h
value: 19 hours
value: 19h
- dps_val: 20h
value: 20 hours
value: 20h
- dps_val: 21h
value: 21 hours
value: 21h
- dps_val: 22h
value: 22 hours
value: 22h
- dps_val: 23h
value: 23 hours
value: 23h
- dps_val: 24h
value: 24 hours
value: 24h
20 changes: 10 additions & 10 deletions custom_components/tuya_local/devices/DH-CSK03W_dehumidifier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,24 @@ secondary_entities:
name: option
optional: true
mapping:
- dps_val: "cancel"
value: "Off"
- dps_val: cancel
value: cancel
- dps_val: "2h"
value: "2 hours"
value: "2h"
- dps_val: "4h"
value: "4 hours"
value: "4h"
- dps_val: "8h"
value: "8 hours"
value: "8h"
- dps_val: "12h"
value: "12 hours"
value: "12h"
- dps_val: "18h"
value: "18 hours"
value: "18h"
- dps_val: "24h"
value: "24 hours"
value: "24h"
- dps_val: "36h"
value: "36 hours"
value: "36h"
- dps_val: "48h"
value: "48 hours"
value: "48h"
- entity: select
name: "Light mode"
category: config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ secondary_entities:
type: boolean
name: lock
- entity: select
name: Countdown
translation_key: timer
category: config
dps:
Expand All @@ -81,55 +80,55 @@ secondary_entities:
type: string
mapping:
- dps_val: "0"
value: Cancel
value: cancel
- dps_val: "1"
value: "1 hour"
value: "1h"
- dps_val: "2"
value: "2 hours"
value: "2h"
- dps_val: "3"
value: "3 hours"
value: "3h"
- dps_val: "4"
value: "4 hours"
value: "4h"
- dps_val: "5"
value: "5 hours"
value: "5h"
- dps_val: "6"
value: "6 hours"
value: "6h"
- dps_val: "7"
value: "7 hours"
value: "7h"
- dps_val: "8"
value: "8 hours"
value: "8h"
- dps_val: "9"
value: "9 hours"
value: "9h"
- dps_val: "10"
value: "10 hours"
value: "10h"
- dps_val: "11"
value: "11 hours"
value: "11h"
- dps_val: "12"
value: "12 hours"
value: "12h"
- dps_val: "13"
value: "13 hours"
value: "13h"
- dps_val: "14"
value: "14 hours"
value: "14h"
- dps_val: "15"
value: "15 hours"
value: "15h"
- dps_val: "16"
value: "16 hours"
value: "16h"
- dps_val: "17"
value: "17 hours"
value: "17h"
- dps_val: "18"
value: "18 hours"
value: "18h"
- dps_val: "19"
value: "19 hours"
value: "19h"
- dps_val: "20"
value: "20 hours"
value: "20h"
- dps_val: "21"
value: "21 hours"
value: "21h"
- dps_val: "22"
value: "22 hours"
value: "22h"
- dps_val: "23"
value: "23 hours"
value: "23h"
- dps_val: "24"
value: "24 hours"
value: "24h"
- entity: sensor
translation_key: time_remaining
class: duration
Expand Down
50 changes: 25 additions & 25 deletions custom_components/tuya_local/devices/alecoair_d14_dehumidifier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,52 +109,52 @@ secondary_entities:
name: option
mapping:
- dps_val: cancel
value: "Off"
value: cancel
- dps_val: 1h
value: 1 hour
value: 1h
- dps_val: 2h
value: 2 hours
value: 2h
- dps_val: 3h
value: 3 hours
value: 3h
- dps_val: 4h
value: 4 hours
value: 4h
- dps_val: 5h
value: 5 hours
value: 5h
- dps_val: 6h
value: 6 hours
value: 6h
- dps_val: 7h
value: 7 hours
value: 7h
- dps_val: 8h
value: 8 hours
value: 8h
- dps_val: 9h
value: 9 hours
value: 9h
- dps_val: 10h
value: 10 hours
value: 10h
- dps_val: 11h
value: 11 hours
value: 11h
- dps_val: 12h
value: 12 hours
value: 12h
- dps_val: 13h
value: 13 hours
value: 13h
- dps_val: 14h
value: 14 hours
value: 14h
- dps_val: 15h
value: 15 hours
value: 15h
- dps_val: 16h
value: 16 hours
value: 16h
- dps_val: 17h
value: 17 hours
value: 17h
- dps_val: 18h
value: 18 hours
value: 18h
- dps_val: 19h
value: 19 hours
value: 19h
- dps_val: 20h
value: 20 hours
value: 20h
- dps_val: 21h
value: 21 hours
value: 21h
- dps_val: 22h
value: 22 hours
value: 22h
- dps_val: 23h
value: 23 hours
value: 23h
- dps_val: 24h
value: 24 hours
value: 24h
50 changes: 25 additions & 25 deletions custom_components/tuya_local/devices/alecoair_d16_dehumidifier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,52 +134,52 @@ secondary_entities:
name: option
mapping:
- dps_val: cancel
value: "Off"
value: cancel
- dps_val: 1h
value: 1 hour
value: 1h
- dps_val: 2h
value: 2 hours
value: 2h
- dps_val: 3h
value: 3 hours
value: 3h
- dps_val: 4h
value: 4 hours
value: 4h
- dps_val: 5h
value: 5 hours
value: 5h
- dps_val: 6h
value: 6 hours
value: 6h
- dps_val: 7h
value: 7 hours
value: 7h
- dps_val: 8h
value: 8 hours
value: 8h
- dps_val: 9h
value: 9 hours
value: 9h
- dps_val: 10h
value: 10 hours
value: 10h
- dps_val: 11h
value: 11 hours
value: 11h
- dps_val: 12h
value: 12 hours
value: 12h
- dps_val: 13h
value: 13 hours
value: 13h
- dps_val: 14h
value: 14 hours
value: 14h
- dps_val: 15h
value: 15 hours
value: 15h
- dps_val: 16h
value: 16 hours
value: 16h
- dps_val: 17h
value: 17 hours
value: 17h
- dps_val: 18h
value: 18 hours
value: 18h
- dps_val: 19h
value: 19 hours
value: 19h
- dps_val: 20h
value: 20 hours
value: 20h
- dps_val: 21h
value: 21 hours
value: 21h
- dps_val: 22h
value: 22 hours
value: 22h
- dps_val: 23h
value: 23 hours
value: 23h
- dps_val: 24h
value: 24 hours
value: 24h
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ secondary_entities:
type: string
name: option
mapping:
- dps_val: "cancel"
value: "off"
- dps_val: cancel
value: cancel
- dps_val: "1h"
value: "1 hour"
value: "1h"
- dps_val: "2h"
value: "2 hours"
value: "2h"
- dps_val: "4h"
value: "4 hours"
value: "4h"
- dps_val: "8h"
value: "8 hours"
value: "8h"
Loading

0 comments on commit ff57e64

Please sign in to comment.