mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[shelly] fix NumberFormatException on Shelly2RelayStatus.timerDuration (#17269)
- If 'Auto OFF' mode is enabled on a Shelly Plus 1 device and set to a value with decimal places a status update throws an NumberFormatException. Changed timerDuration/timer_duration from Integer to Double fixes the problem. Signed-off-by: Stefan Pledl <stefan@pledl.de>
This commit is contained in:
parent
2080c85524
commit
566171e36e
@ -865,7 +865,7 @@ public class Shelly2ApiJsonDTO {
|
||||
@SerializedName("timer_started_at")
|
||||
public Double timerStartetAt;
|
||||
@SerializedName("timer_duration")
|
||||
public Integer timerDuration;
|
||||
public Double timerDuration;
|
||||
public Double apower;
|
||||
public Double voltage;
|
||||
public Double current;
|
||||
|
Loading…
Reference in New Issue
Block a user