Skip to content

Commit

Permalink
Standardise filter reset buttons to use translations
Browse files Browse the repository at this point in the history
Issue #1708
  • Loading branch information
make-all committed Nov 3, 2024
1 parent 0297d94 commit 8b771b5
Show file tree
Hide file tree
Showing 48 changed files with 88 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,8 @@ secondary_entities:
type: boolean
name: switch
- entity: button
name: Filter reset
translation_key: filter_reset
category: config
icon: mdi:air-filter
dps:
- id: 28
type: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ secondary_entities:
type: boolean
name: switch
- entity: button
name: Filter reset
translation_key: filter_reset
category: config
dps:
- id: 28
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,8 @@ secondary_entities:
name: sensor
unit: "%"
- entity: button
name: Filter reset
translation_key: filter_reset
category: config
icon: "mdi:air-filter"
dps:
- id: 20
type: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ secondary_entities:
type: boolean
name: switch
- entity: button
name: Filter reset
class: restart
translation_key: filter_reset
category: config
dps:
- id: 11
Expand Down
3 changes: 1 addition & 2 deletions custom_components/tuya_local/devices/himox_h05_purifier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ secondary_entities:
type: boolean
name: lock
- entity: button
name: Filter reset
class: restart
translation_key: filter_reset
category: config
dps:
- id: 11
Expand Down
3 changes: 1 addition & 2 deletions custom_components/tuya_local/devices/himox_h06_purifier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ secondary_entities:
type: boolean
name: switch
- entity: button
name: Filter reset
translation_key: filter_reset
category: config
class: restart
dps:
- id: 11
type: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ secondary_entities:
type: integer
unit: h
- entity: button
name: Filter reset
translation_key: filter_reset
category: diagnostic
class: restart
dps:
- id: 11
type: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ secondary_entities:
type: boolean
name: switch
- entity: button
name: Filter reset
translation_key: filter_reset
category: diagnostic
class: restart
dps:
- id: 11
type: boolean
Expand Down
3 changes: 1 addition & 2 deletions custom_components/tuya_local/devices/ir_moes_heatpump.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ secondary_entities:
value: false
- value: true
- entity: button
name: Filter reset
class: restart
translation_key: filter_reset
category: config
dps:
- id: 7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,7 @@ secondary_entities:
name: sensor
unit: min
- entity: button
name: Filter reset
class: restart
translation_key: filter_reset
category: config
dps:
- id: 22
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ secondary_entities:
type: boolean
name: lock
- entity: button
name: Filter reset
class: restart
translation_key: filter_reset
category: config
dps:
- id: 11
Expand Down
3 changes: 1 addition & 2 deletions custom_components/tuya_local/devices/kogan_air_purifier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ secondary_entities:
- dps_val: 2
value: 255
- entity: button
name: Filter reset
translation_key: filter_reset
category: config
class: restart
dps:
- id: 11
type: boolean
Expand Down
3 changes: 1 addition & 2 deletions custom_components/tuya_local/devices/kyvol_e30_vacuum.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,8 @@ secondary_entities:
type: boolean
name: button
- entity: button
name: Filter reset
translation_key: filter_reset
category: config
class: restart
dps:
- id: 12
type: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ secondary_entities:
name: sensor
unit: h
- entity: button
name: Filter reset
translation_key: filter_reset
category: config
dps:
- id: 22
Expand Down
3 changes: 1 addition & 2 deletions custom_components/tuya_local/devices/nac_ap470_purifier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ secondary_entities:
type: boolean
name: switch
- entity: button
name: Filter reset
class: restart
translation_key: filter_reset
category: config
dps:
- id: 11
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,8 @@ secondary_entities:
min: 0
max: 9000
- entity: button
name: Filter reset
translation_key: filter_reset
category: diagnostic
class: restart
dps:
- id: 22
type: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,8 @@ secondary_entities:
value: false
- value: true
- entity: button
name: Filter reset
translation_key: filter_reset
category: config
class: restart
dps:
- id: 7
type: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,8 @@ secondary_entities:
- dps_val: "24H"
value: "24h"
- entity: button
name: Filter reset
translation_key: filter_reset
category: config
class: restart
dps:
- id: 11
type: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ secondary_entities:
type: boolean
name: lock
- entity: button
name: Filter reset
translation_key: filter_reset
category: config
class: restart
dps:
- id: 11
type: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,8 @@ secondary_entities:
min: 0
max: 9000
- entity: button
name: Filter reset
translation_key: filter_reset
category: diagnostic
class: restart
dps:
- id: 22
type: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ secondary_entities:
name: sensor
unit: "%"
- entity: button
name: Filter reset
translation_key: filter_reset
category: config
dps:
- id: 13
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ secondary_entities:
- value: false

- entity: button
name: Filter Reset
icon: "mdi:air-filter"
translation_key: filter_Reset
category: config
dps:
- id: 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,7 @@ secondary_entities:
- dps_val: 128
value: "MOTOR: fan failure"
- entity: button
name: Filter reset
class: restart
translation_key: filter_reset
category: config
dps:
- id: 20
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ secondary_entities:
type: boolean
name: switch
- entity: button
name: Filter reset
class: restart
translation_key: filter_reset
category: config
dps:
- id: 11
Expand Down
3 changes: 1 addition & 2 deletions custom_components/tuya_local/devices/tesvor_s6_vacuum.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,7 @@ secondary_entities:
unit: min
class: measurement
- entity: button
name: Filter reset
class: restart
translation_key: filter_reset
category: config
dps:
- id: 22
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,7 @@ secondary_entities:
name: sensor
unit: min
- entity: button
name: Filter reset
class: restart
translation_key: filter_reset
category: config
dps:
- id: 22
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ secondary_entities:
- dps_val: false
icon: "mdi:led-off"
- entity: button
name: Filter reset
translation_key: filter_reset
category: config
class: restart
dps:
- id: 11
type: boolean
Expand Down
3 changes: 1 addition & 2 deletions custom_components/tuya_local/devices/zedar_r600_vacuum.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,7 @@ secondary_entities:
name: sensor
unit: min
- entity: button
name: Filter reset
class: restart
translation_key: filter_reset
category: config
dps:
- id: 22
Expand Down
3 changes: 3 additions & 0 deletions custom_components/tuya_local/icons.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
"button": {
"factory_reset": {
"default": "mdi:cog-refresh"
},
"filter_reset": {
"default": "mdi:air-filter"
}
},
"climate": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/tuya_local/translations/bg.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@
"button": {
"factory_reset": {
"name": "Фабричен ресет"
},
"filter_reset": {
"name": "Филтър за ресетиране"
}
},
"climate": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/tuya_local/translations/cz.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@
"button": {
"factory_reset": {
"name": "Obnovení továrního nastavení"
},
"filter_reset": {
"name": "Obnovení filtru"
}
},
"climate": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/tuya_local/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@
"button": {
"factory_reset": {
"name": "Werkseinstellungen"
},
"filter_reset": {
"name": "Filter zurücksetzen"
}
},
"climate": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/tuya_local/translations/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@
"button": {
"factory_reset": {
"name": "Επαναφορά εργοστασιακών ρυθμίσεων"
},
"filter_reset": {
"name": "Επαναφορά φίλτρου"
}
},
"climate": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/tuya_local/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@
"button": {
"factory_reset": {
"name": "Factory reset"
},
"filter_reset": {
"name": "Filter reset"
}
},
"climate": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/tuya_local/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@
"button": {
"factory_reset": {
"name": "Restablecimiento de fábrica"
},
"filter_reset": {
"name": "Restablecimiento del filtro"
}
},
"climate": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/tuya_local/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@
"button": {
"factory_reset": {
"name": "Réinitialisation d'usine"
},
"filter_reset": {
"name": "Réinitialisation du filtre"
}
},
"climate": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/tuya_local/translations/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@
"button": {
"factory_reset": {
"name": "Gyári visszaállítás"
},
"filter_reset": {
"name": "Szűrő visszaállítás"
}
},
"climate": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/tuya_local/translations/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@
"button": {
"factory_reset": {
"name": "Reset pabrik"
},
"filter_reset": {
"name": "Reset filter"
}
},
"climate": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/tuya_local/translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@
"button": {
"factory_reset": {
"name": "Ripristino alle impostazioni di fabbrica"
},
"filter_reset": {
"name": "Ripristino del filtro"
}
},
"climate": {
Expand Down
Loading

0 comments on commit 8b771b5

Please sign in to comment.