Skip to content

Commit

Permalink
number/select Timer: Move name and icon to translations
Browse files Browse the repository at this point in the history
Issue #1579
  • Loading branch information
make-all committed Feb 28, 2024
1 parent 6fd0569 commit cddef4d
Show file tree
Hide file tree
Showing 229 changed files with 398 additions and 495 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ secondary_entities:
type: boolean
name: lock
- entity: select
name: Timer
icon: "mdi:timer"
translation_key: timer
category: config
dps:
- id: 17
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ secondary_entities:
type: boolean
name: lock
- entity: select
name: Timer
icon: "mdi:timer"
translation_key: timer
category: config
dps:
- id: 17
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@ secondary_entities:
type: boolean
name: lock
- entity: select
name: Timer
icon: "mdi:timer"
translation_key: timer
category: config
dps:
- id: 17
Expand Down
3 changes: 1 addition & 2 deletions custom_components/tuya_local/devices/anko_fan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ primary_entity:
name: timer
secondary_entities:
- entity: number
name: Timer
icon: "mdi:timer"
translation_key: timer
category: config
dps:
- id: 6
Expand Down
3 changes: 1 addition & 2 deletions custom_components/tuya_local/devices/ard100_valve.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ primary_entity:
name: switch
secondary_entities:
- entity: number
name: Timer
icon: "mdi:timer"
translation_key: timer
category: config
dps:
- id: 7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ primary_entity:
name: fault_code
secondary_entities:
- entity: select
name: Timer
icon: "mdi:timer"
translation_key: timer
category: config
dps:
- id: 6
Expand Down
3 changes: 1 addition & 2 deletions custom_components/tuya_local/devices/arlec_19speed_fan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ primary_entity:
type: bitfield
secondary_entities:
- entity: number
name: Timer
translation_key: timer
category: config
icon: "mdi:timer"
dps:
- id: 22
type: integer
Expand Down
3 changes: 1 addition & 2 deletions custom_components/tuya_local/devices/arlec_6speed_fan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ secondary_entities:
value: false
- value: true
- entity: select
name: Timer
icon: "mdi:timer"
translation_key: timer
category: config
dps:
- id: 6
Expand Down
3 changes: 1 addition & 2 deletions custom_components/tuya_local/devices/arlec_fan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ primary_entity:
type: string
secondary_entities:
- entity: select
name: Timer
icon: "mdi:timer"
translation_key: timer
category: config
dps:
- id: 103
Expand Down
3 changes: 1 addition & 2 deletions custom_components/tuya_local/devices/arlec_fan_light.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ secondary_entities:
min: 2700
max: 6500
- entity: select
name: Timer
icon: "mdi:timer"
translation_key: timer
category: config
dps:
- id: 103
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,8 @@ primary_entity:
optional: true
secondary_entities:
- entity: number
name: Timer
translation_key: timer
category: config
icon: "mdi:timer"
dps:
- id: 105
type: integer
Expand Down
3 changes: 1 addition & 2 deletions custom_components/tuya_local/devices/arlec_panel_heater.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ secondary_entities:
optional: true
name: alternate
- entity: number
name: Timer
translation_key: timer
category: config
icon: "mdi:timer"
dps:
- id: 10
type: integer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ secondary_entities:
type: boolean
name: lock
- entity: number
name: Timer
translation_key: timer
category: config
icon: "mdi:timer"
dps:
- id: 19
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ secondary_entities:
name: switch
- entity: number
category: config
translation_key: timer
name: Timer switch 1
icon: "mdi:timer"
dps:
- id: 9
name: value
Expand All @@ -50,7 +50,7 @@ secondary_entities:
- entity: number
category: config
name: Timer switch 2
icon: "mdi:timer"
translation_key: timer
dps:
- id: 10
name: value
Expand All @@ -65,7 +65,7 @@ secondary_entities:
- entity: number
category: config
name: Timer switch 3
icon: "mdi:timer"
translation_key: timer
dps:
- id: 11
name: value
Expand All @@ -80,7 +80,7 @@ secondary_entities:
- entity: number
category: config
name: Timer switch 4
icon: "mdi:timer"
translation_key: timer
dps:
- id: 12
name: value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,8 @@ secondary_entities:
type: boolean
name: switch
- entity: number
name: Timer
translation_key: timer
category: config
icon: "mdi:timer"
dps:
- id: 4
type: integer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ secondary_entities:
type: boolean
name: switch
- entity: select
name: Timer
icon: "mdi:timer"
translation_key: timer
category: config
dps:
- id: 11
Expand Down Expand Up @@ -90,7 +89,6 @@ secondary_entities:
value: "12 hours"
- entity: sensor
name: Timer remain
icon: "mdi:timer"
class: duration
category: diagnostic
dps:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ primary_entity:
name: add_ele
secondary_entities:
- entity: number
name: Timer
translation_key: timer
category: config
icon: "mdi:timer"
dps:
- id: 9
type: integer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ primary_entity:
type: string
secondary_entities:
- entity: number
name: Timer
translation_key: timer
category: config
icon: "mdi:timer"
dps:
- id: 9
name: value
Expand Down
4 changes: 2 additions & 2 deletions custom_components/tuya_local/devices/aubess_2gang_switch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ secondary_entities:
type: boolean
- entity: number
name: Timer 1
translation_key: timer
category: config
icon: "mdi:timer"
dps:
- id: 9
type: integer
Expand All @@ -42,7 +42,7 @@ secondary_entities:
- entity: number
name: Timer 2
category: config
icon: "mdi:timer"
translation_key: timer
dps:
- id: 10
type: integer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ primary_entity:
- value: closing
secondary_entities:
- entity: select
name: Timer
icon: "mdi:timer"
translation_key: timer
category: config
dps:
- id: 8
Expand All @@ -72,7 +71,6 @@ secondary_entities:
value: "4 hours"
- entity: sensor
name: Timer
icon: "mdi:timer"
class: duration
category: diagnostic
dps:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ secondary_entities:
type: boolean
name: lock
- entity: select
name: Timer
icon: "mdi:timer"
translation_key: timer
category: config
dps:
- id: 11
Expand Down Expand Up @@ -83,7 +82,6 @@ secondary_entities:
value: "12 hours"
- entity: sensor
name: Timer countdown
icon: "mdi:timer"
class: duration
category: diagnostic
dps:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,8 @@ secondary_entities:
value: "not set"
hidden: true
- entity: number
name: Timer
translation_key: timer
category: config
icon: "mdi:timer"
dps:
- id: 11
type: integer
Expand Down
3 changes: 1 addition & 2 deletions custom_components/tuya_local/devices/ble_solar_light.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,8 @@ primary_entity:
optional: true
secondary_entities:
- entity: number
name: Timer
translation_key: timer
category: config
icon: "mdi:timer"
dps:
- id: 7
type: integer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ secondary_entities:
- dps_val: colour
value: Colorful
- entity: select
name: Timer
icon: "mdi:timer"
translation_key: timer
category: config
dps:
- id: 19
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ secondary_entities:
unit: F
optional: true
- entity: select
name: Timer
icon: "mdi:timer"
translation_key: timer
category: config
dps:
- id: 19
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,8 @@ secondary_entities:
name: calibration
optional: true
- entity: number
name: Timer
translation_key: timer
category: config
icon: "mdi:timer"
dps:
- id: 9
type: integer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ secondary_entities:
type: boolean
name: lock
- entity: select
name: Timer
icon: "mdi:timer"
translation_key: timer
category: config
dps:
- id: 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ secondary_entities:
unit: C
class: measurement
- entity: select
name: Timer
icon: "mdi:timer"
translation_key: timer
category: config
dps:
- id: 22
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ secondary_entities:
type: integer
unit: d
- entity: select
name: Timer
icon: "mdi:fan-clock"
translation_key: timer
category: config
dps:
- id: 19
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ secondary_entities:
- dps_val: "3"
value: 100
- entity: select
name: Timer
icon: "mdi:timer"
class: duration
translation_key: timer
category: config
dps:
- id: 12
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ secondary_entities:
type: integer
unit: d
- entity: select
name: Timer
translation_key: timer
category: config
icon: "mdi:fan-clock"
dps:
- id: 18
type: string
Expand All @@ -80,7 +79,6 @@ secondary_entities:
- entity: sensor
name: Timer remaining
category: diagnostic
icon: "mdi:timer-sand"
class: duration
dps:
- id: 19
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ secondary_entities:
type: integer
unit: d
- entity: select
name: Timer
icon: "mdi:fan-clock"
translation_key: timer
category: config
dps:
- id: 19
Expand Down
Loading

0 comments on commit cddef4d

Please sign in to comment.