Skip to content

Commit

Permalink
Fix two strings for the Generic hygrostat UI (#131185)
Browse files Browse the repository at this point in the history
* Fix two strings for the Generic hygrostat UI

The 'min_cycle_duration' key shown when setting up a Generic hygrostat contains the words "in the humidifier option" which makes no  sense anymore in the UI context.

So these words can be dropped, making this explanation exactly identical to the same key in the Generic thermostat.

In addition there is an "s" missing in the main description here.

* Replace "be" with "remain" and use "toggle"

Co-authored-by: Jan Bouwhuis <[email protected]>

* Fix the title string to use "Create" instead of "Add"

Anything the user creates should use "Create …", not "Add …".

The description we're addressing in the fix already has this correct. This commit adds the fix for the title.

Makes it consistent with the majority of Helpers, rest needs to be addressed in separate PRs.

---------

Co-authored-by: Jan Bouwhuis <[email protected]>
  • Loading branch information
NoRi2909 and jbouwh authored Nov 21, 2024
1 parent 9bbf9be commit bd3352c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions homeassistant/components/generic_hygrostat/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"config": {
"step": {
"user": {
"title": "Add generic hygrostat",
"description": "Create a humidifier entity that control the humidity via a switch and sensor.",
"title": "Create generic hygrostat",
"description": "Create a humidifier entity that controls the humidity via a switch and sensor.",
"data": {
"device_class": "Device class",
"dry_tolerance": "Dry tolerance",
Expand All @@ -17,7 +17,7 @@
"data_description": {
"dry_tolerance": "The minimum amount of difference between the humidity read by the sensor specified in the target sensor option and the target humidity that must change prior to being switched on.",
"humidifier": "Humidifier or dehumidifier switch; must be a toggle device.",
"min_cycle_duration": "Set a minimum amount of time that the switch specified in the humidifier option must be in its current state prior to being switched either off or on.",
"min_cycle_duration": "Set a minimum duration for which the specified switch must remain in its current state before it can be toggled off or on.",
"target_sensor": "Sensor with current humidity.",
"wet_tolerance": "The minimum amount of difference between the humidity read by the sensor specified in the target sensor option and the target humidity that must change prior to being switched off."
}
Expand Down

0 comments on commit bd3352c

Please sign in to comment.