fix
This commit is contained in:
parent
3af4b24a12
commit
5fc63edf4f
2 changed files with 11 additions and 0 deletions
|
@ -28,6 +28,7 @@ public class ThermostatController {
|
|||
newT.setId(t.getId());
|
||||
newT.setName(t.getName());
|
||||
newT.setRoomId(t.getRoomId());
|
||||
newT.setMeasuredTemperature(t.getMeasuredTemperature());
|
||||
newT.setUseExternalSensors(t.isUseExternalSensors());
|
||||
newT.setOn(t.isTurnOn());
|
||||
|
||||
|
|
|
@ -22,6 +22,8 @@ public class ThermostatSaveRequest {
|
|||
|
||||
@NotNull private boolean useExternalSensors;
|
||||
|
||||
@NotNull private BigDecimal measuredTemperature;
|
||||
|
||||
/** State of this thermostat */
|
||||
@NotNull private boolean turnOn;
|
||||
|
||||
|
@ -72,4 +74,12 @@ public class ThermostatSaveRequest {
|
|||
public void setId(long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public BigDecimal getMeasuredTemperature() {
|
||||
return measuredTemperature;
|
||||
}
|
||||
|
||||
public void setMeasuredTemperature(BigDecimal measuredTemperature) {
|
||||
this.measuredTemperature = measuredTemperature;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue