Skip to content

Commit

Permalink
Fix wrong name for silent mode #52
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre0512 committed Jun 22, 2023
1 parent 2c3217f commit a542243
Show file tree
Hide file tree
Showing 22 changed files with 63 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,11 @@ For every device exists a hidden button which can be used to log all infos of yo
| Eco Mode | | `switch` | `ecoMode` |
| Eco Pilot | `run` | `select` | `settings.humanSensingStatus` |
| Health Mode | `medication-outline` | `switch` | `healthMode` |
| Mute | `volume-off` | `switch` | `muteStatus` |
| Rapid Mode | `run-fast` | `switch` | `rapidMode` |
| Screen Display | `monitor-small` | `switch` | `screenDisplayStatus` |
| Self Cleaning | `air-filter` | `switch` | `selfCleaningStatus` |
| Self Cleaning 56 | `air-filter` | `switch` | `selfCleaning56Status` |
| Silent Mode | `volume-off` | `switch` | `muteStatus` |
| Silent Sleep | `bed` | `switch` | `silentSleepStatus` |
| Target Temperature | `thermometer` | `number` | `settings.tempSel` |
#### Sensors
Expand Down
8 changes: 4 additions & 4 deletions custom_components/hon/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

from homeassistant.components.switch import SwitchEntityDescription, SwitchEntity
from homeassistant.config_entries import ConfigEntry
from homeassistant.helpers.entity import EntityCategory
from homeassistant.core import callback
from homeassistant.helpers.entity import EntityCategory
from pyhon.parameter.base import HonParameter
from pyhon.parameter.range import HonParameterRange

Expand Down Expand Up @@ -262,9 +262,9 @@ class HonConfigSwitchEntityDescription(SwitchEntityDescription):
),
HonSwitchEntityDescription(
key="muteStatus",
name="Mute",
name="Silent Mode",
icon="mdi:volume-off",
translation_key="mute_mode",
translation_key="silent_mode",
),
HonSwitchEntityDescription(
key="rapidMode",
Expand Down Expand Up @@ -293,7 +293,7 @@ class HonConfigSwitchEntityDescription(SwitchEntityDescription):
key="silentSleepStatus",
name="Silent Sleep",
icon="mdi:bed",
translation_key="silent_mode",
translation_key="night_mode",
),
),
"REF": (
Expand Down
3 changes: 3 additions & 0 deletions custom_components/hon/translations/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "Chladnička"
},
"night_mode": {
"name": "Noční režim"
}
},
"binary_sensor": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/hon/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "Kühlschrank"
},
"night_mode": {
"name": "Nachtmodus"
}
},
"binary_sensor": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/hon/translations/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "Ψυγείο"
},
"night_mode": {
"name": "Νυχτερινή λειτουργία"
}
},
"binary_sensor": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/hon/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1735,6 +1735,9 @@
},
"refrigerator": {
"name": "Refrigerator"
},
"night_mode": {
"name": "Night mode"
}
},
"binary_sensor": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/hon/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "Frigorífico"
},
"night_mode": {
"name": "Modo nocturno"
}
},
"binary_sensor": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/hon/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "Réfrigérateur"
},
"night_mode": {
"name": "Mode nuit"
}
},
"binary_sensor": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/hon/translations/he.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,9 @@
},
"refrigerator": {
"name": "Refrigerator"
},
"night_mode": {
"name": "Night mode"
}
},
"binary_sensor": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/hon/translations/hr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "Hladnjak"
},
"night_mode": {
"name": "Noćni način rada"
}
},
"binary_sensor": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/hon/translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -1711,6 +1711,9 @@
},
"refrigerator": {
"name": "Frigo"
},
"night_mode": {
"name": "Modalità notte"
}
},
"binary_sensor": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/hon/translations/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "Koelkast"
},
"night_mode": {
"name": "Nachtmodus"
}
},
"binary_sensor": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/hon/translations/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "Lodówka"
},
"night_mode": {
"name": "Tryb nocny"
}
},
"binary_sensor": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/hon/translations/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "Frigorífico"
},
"night_mode": {
"name": "Modo noturno"
}
},
"binary_sensor": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/hon/translations/ro.json
Original file line number Diff line number Diff line change
Expand Up @@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "Frigider"
},
"night_mode": {
"name": "Modul noapte"
}
},
"binary_sensor": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/hon/translations/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "Холодильник"
},
"night_mode": {
"name": "Ночной режим"
}
},
"binary_sensor": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/hon/translations/sk.json
Original file line number Diff line number Diff line change
Expand Up @@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "Chladnička"
},
"night_mode": {
"name": "Nočný režim"
}
},
"binary_sensor": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/hon/translations/sl.json
Original file line number Diff line number Diff line change
Expand Up @@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "Hladilnik"
},
"night_mode": {
"name": "Nočni način"
}
},
"binary_sensor": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/hon/translations/sr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "Frižider"
},
"night_mode": {
"name": "Noćni režim"
}
},
"binary_sensor": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/hon/translations/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "Buzdolabı"
},
"night_mode": {
"name": "Gece modu"
}
},
"binary_sensor": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/hon/translations/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "冰箱"
},
"night_mode": {
"name": "夜间模式"
}
},
"binary_sensor": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/translation_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
"self_clean": "PROGRAMS.AC.IOT_SELF_CLEAN",
"self_clean_56": "PROGRAMS.AC.IOT_SELF_CLEAN_56",
"silent_mode": "AC.PROGRAM_DETAIL.SILENT_MODE",
"mute_mode": "AC.PROGRAM_DETAIL.MUTE_MODE",
"night_mode": "AC.PROGRAM_CARD.NIGHT",
"extra_rinse_1": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.EXTRARINSE1",
"extra_rinse_2": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.EXTRARINSE2",
"extra_rinse_3": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.EXTRARINSE3",
Expand Down

0 comments on commit a542243

Please sign in to comment.