Also avoid the thing to remain in state UNKNOWN if the decoding of the
JSON response is failing.
Fix #12719
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
public Double[] temperatures;
@SerializedName("wh")
- public Long sessionChargeConsumption;
+ public Double sessionChargeConsumption;
@SerializedName("dwo")
public Double sessionChargeConsumptionLimit;
} catch (InterruptedException ie) {
Thread.currentThread().interrupt();
updateChannelsAndStatus(null, ie.getMessage());
- } catch (TimeoutException | ExecutionException e) {
+ } catch (TimeoutException | ExecutionException | JsonSyntaxException e) {
updateChannelsAndStatus(null, e.getMessage());
}
}