ha(H3): исправления по ревью — turn_on/off, кламп конверсий, reload, гонка ONLINE
- M1: supported_features += TURN_ON/TURN_OFF (сервисы в HA 2026.9), async_turn_off; удалён мёртвый _enable_turn_on_off_backwards_compat; тест turn_on/turn_off → operation_mode 1/0 - M2: достижимый диапазон = override ∩ raw-таблица шаблона; raw клампится в from_display, clamp() по достижимому диапазону (молчаливый кламп ядра устранён); тесты scaled override - M3: mock_ac сбрасывает crypto/active на DELETE; тест reload → снова ONLINE - гонка: async_sync_now больше не перезаписывает данные устаревшим снимком (ONLINE мог потеряться при быстром старте) — стабильность 4×37 тестов - m1: превью-текст учитывает выбранный в форме шаблон; m2: убрана недостижимая проверка шага; m3: удалён мёртвый translation_key climate - m4: бит 21 op_status (шаблон B); m5: lru_cache template_info/prop_info; m6: operation_mode=1 без истории → hvac_mode unknown; m7: ошибка команды → HomeAssistantError; m8: unload возвращает False, не разбирая runtime - n2: уточнены описания data_description в переводах
This commit is contained in:
@@ -65,9 +65,9 @@
|
||||
"temp_offset": "Conversion offset (0.1 °C)"
|
||||
},
|
||||
"data_description": {
|
||||
"temp_num": "display = raw × num / den + offset (raw in API units, 0.1 °C)",
|
||||
"temp_den": "display = raw × num / den + offset (raw in API units, 0.1 °C)",
|
||||
"temp_offset": "display = raw × num / den + offset (raw in API units, 0.1 °C)"
|
||||
"temp_num": "display = raw × num / den + offset; raw is the protocol value (setpoint: 0.1 °C)",
|
||||
"temp_den": "display = raw × num / den + offset; raw is the protocol value (setpoint: 0.1 °C)",
|
||||
"temp_offset": "display = raw × num / den + offset; raw is the protocol value (setpoint: 0.1 °C)"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -81,7 +81,7 @@
|
||||
"no_devices": "No devices found in the account",
|
||||
"unknown": "Unexpected error",
|
||||
"properties_missing": "The device connected but did not report its base properties",
|
||||
"invalid_range": "Minimum must be less than maximum, step must be positive"
|
||||
"invalid_range": "Minimum must be less than maximum"
|
||||
},
|
||||
"abort": {
|
||||
"already_configured": "This device is already configured",
|
||||
@@ -94,9 +94,6 @@
|
||||
}
|
||||
},
|
||||
"entity": {
|
||||
"climate": {
|
||||
"name": "Air conditioner"
|
||||
},
|
||||
"sensor": {
|
||||
"room_temperature": {
|
||||
"name": "Room temperature"
|
||||
@@ -137,6 +134,9 @@
|
||||
},
|
||||
"simultaneous": {
|
||||
"name": "Simultaneous operation"
|
||||
},
|
||||
"different_modes": {
|
||||
"name": "Freeze/oil/other modes (template B)"
|
||||
}
|
||||
},
|
||||
"switch": {
|
||||
|
||||
Reference in New Issue
Block a user