This commit is contained in:
Claudio Maggioni (maggicl) 2020-04-28 10:48:09 +02:00
parent ba73348a74
commit cfa2f794cb
2 changed files with 1 additions and 2 deletions

View File

@ -32,8 +32,8 @@ public class ThermostatController {
newT.setUseExternalSensors(t.isUseExternalSensors());
newT.setOn(t.isTurnOn());
newT = deviceService.saveAsOwner(newT, principal.getName());
thermostatService.populateMeasuredTemperature(newT);
newT = deviceService.saveAsOwner(newT, principal.getName());
return newT;
}

View File

@ -72,7 +72,6 @@ public class ThermostatService {
populateMeasuredTemperature(u);
t = Optional.of(u);
}
return t;
}