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.setUseExternalSensors(t.isUseExternalSensors());
newT.setOn(t.isTurnOn()); newT.setOn(t.isTurnOn());
newT = deviceService.saveAsOwner(newT, principal.getName());
thermostatService.populateMeasuredTemperature(newT); thermostatService.populateMeasuredTemperature(newT);
newT = deviceService.saveAsOwner(newT, principal.getName());
return newT; return newT;
} }

View file

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