Skip to content

Commit 6be1ab0

Browse files
committed
* Fixed incorrect string mapping for AUTO_MODE
* Updated translations
1 parent 85f229d commit 6be1ab0

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

custom_components/systemair/sensor.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@
9595
VALUE_MAP_TO_ALARM_STATE = {value: key for key, value in ALARM_STATE_TO_VALUE_MAP.items()}
9696
IAQ_LEVEL_MAP = {0: "Perfect", 1: "Good", 2: "Improving"}
9797
DEMAND_CONTROLLER_MAP = {0: "CO2", 1: "RH"}
98+
AUTO_MODE_SOURCE_MAP = {
99+
0: "External control",
100+
1: "Demand control",
101+
2: "Week schedule",
102+
3: "Configuration fault",
103+
}
98104
DEFROSTING_STATE_MAP = {
99105
0: "Normal",
100106
1: "Bypass",
@@ -402,6 +408,7 @@ class SystemairSensor(SystemairEntity, SensorEntity):
402408
_KEY_TO_MAP: ClassVar[dict[str, dict[int, str]]] = {
403409
"iaq_level": IAQ_LEVEL_MAP,
404410
"demand_active_controller": DEMAND_CONTROLLER_MAP,
411+
"auto_mode_source": AUTO_MODE_SOURCE_MAP,
405412
"defrosting_state": DEFROSTING_STATE_MAP,
406413
}
407414

custom_components/systemair/translations/en.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,14 @@
275275
}
276276
},
277277
"defrosting_state": {
278-
"name": "Defrosting State"
278+
"name": "Defrosting State",
279+
"state": {
280+
"normal": "Normal",
281+
"bypass": "Bypass",
282+
"stop": "Stop",
283+
"secondary_air": "Secondary air",
284+
"error": "Error"
285+
}
279286
},
280287
"supply_fan_power": {
281288
"name": "Supply Fan Power"

custom_components/systemair/translations/ru.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,14 @@
275275
}
276276
},
277277
"defrosting_state": {
278-
"name": "Состояние разморозки"
278+
"name": "Состояние разморозки",
279+
"state": {
280+
"normal": "Нормально",
281+
"bypass": "Байпас",
282+
"stop": "Стоп",
283+
"secondary_air": "Вторичный воздух",
284+
"error": "Ошибка"
285+
}
279286
},
280287
"supply_fan_power": {
281288
"name": "Мощность приточного вентилятора"

0 commit comments

Comments
 (0)