fix: display of current heating temp on dashboard

This commit is contained in:
Yurii
2024-11-12 11:37:09 +03:00
parent 636872f72d
commit 8b6e6be670

View File

@@ -144,14 +144,14 @@
<th scope="row" data-i18n>dashboard.states.sHeatActive</th> <th scope="row" data-i18n>dashboard.states.sHeatActive</th>
<td><input type="radio" class="sHeatActive" aria-invalid="false" checked disabled /></td> <td><input type="radio" class="sHeatActive" aria-invalid="false" checked disabled /></td>
</tr> </tr>
<tr>
<th scope="row" data-i18n>dashboard.states.mHeatSetpointTemp</th>
<td><b class="mHeatSetpointTemp"></b> <span class="tempUnit"></span></td>
</tr>
<tr> <tr>
<th scope="row" data-i18n>dashboard.states.mHeatTargetTemp</th> <th scope="row" data-i18n>dashboard.states.mHeatTargetTemp</th>
<td><b class="mHeatTargetTemp"></b> <span class="tempUnit"></span></td> <td><b class="mHeatTargetTemp"></b> <span class="tempUnit"></span></td>
</tr> </tr>
<tr>
<th scope="row" data-i18n>dashboard.states.mHeatSetpointTemp</th>
<td><b class="mHeatSetpointTemp"></b> <span class="tempUnit"></span></td>
</tr>
<tr> <tr>
<th scope="row" data-i18n>dashboard.states.mHeatCurrTemp</th> <th scope="row" data-i18n>dashboard.states.mHeatCurrTemp</th>
<td><b class="mHeatCurrTemp"></b> <span class="tempUnit"></span></td> <td><b class="mHeatCurrTemp"></b> <span class="tempUnit"></span></td>
@@ -409,7 +409,7 @@
const result = await response.json(); const result = await response.json();
// Graph // Graph
setValue('#tHeatCurrentTemp', result.master.indoorTempControl setValue('#tHeatCurrentTemp', result.master.heating.indoorTempControl
? result.master.heating.indoorTemp ? result.master.heating.indoorTemp
: result.master.heating.currentTemp : result.master.heating.currentTemp
); );