Fix temperature assignment clearing
This commit is contained in:
@@ -514,7 +514,6 @@ async function clearTempAssignment(id){
|
||||
return;
|
||||
}
|
||||
|
||||
await fetch("/config/save",{method:"POST"});
|
||||
await load();
|
||||
alert("Temp probe assignment cleared for "+id);
|
||||
}
|
||||
|
||||
@@ -196,6 +196,9 @@ bool clearTempSensor(int configIndex) {
|
||||
|
||||
appConfig.tempSensors[configIndex].address = "";
|
||||
appConfig.tempSensors[configIndex].enabled = false;
|
||||
appConfig.tempSensors[configIndex].weather = false;
|
||||
sensors.tempsF[configIndex] = -127.0;
|
||||
sensors.online[configIndex] = false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user