fix
This commit is contained in:
parent
ba73348a74
commit
cfa2f794cb
2 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -72,7 +72,6 @@ public class ThermostatService {
|
|||
populateMeasuredTemperature(u);
|
||||
t = Optional.of(u);
|
||||
}
|
||||
|
||||
return t;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue