Skip to content

Commit

Permalink
[miio] fix parsing issue (openhab#7456)
Browse files Browse the repository at this point in the history
As we don't really know the data types of these variables.
https://community.openhab.org/t/uid-thats-higher-than-max-int32-causes-exception/97333


Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
  • Loading branch information
marcelrv authored and markus7017 committed Sep 18, 2020
1 parent d38cbe7 commit e40fffb
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
public class MiIoInfoDTO {
@SerializedName("life")
@Expose
public Integer life;
public Long life;
@SerializedName("cfg_time")
@Expose
public Integer cfgTime;
public Long cfgTime;
@SerializedName("token")
@Expose
public String token;
Expand All @@ -41,7 +41,7 @@ public class MiIoInfoDTO {
public String hwVer;
@SerializedName("uid")
@Expose
public Integer uid;
public Long uid;
@SerializedName("model")
@Expose
public String model;
Expand All @@ -53,5 +53,5 @@ public class MiIoInfoDTO {
public String mcuFwVer;
@SerializedName("mmfree")
@Expose
public Integer mmfree;
public Long mmfree;
}

0 comments on commit e40fffb

Please sign in to comment.