[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>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
Stefan Pledl 2024-11-02 19:59:58 +01:00 committed by Ciprian Pascu
parent fd85d1bad0
commit d6f6a66a44

View File

@ -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;