[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:
Stefan Pledl 2024-11-02 19:59:58 +01:00 committed by GitHub
parent 2080c85524
commit 566171e36e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;