From 2abe38bd0f79fa927cecdcbddccb446317a5ceb7 Mon Sep 17 00:00:00 2001 From: andig Date: Sun, 11 Jun 2023 14:24:38 +0200 Subject: [PATCH] OpenEVSE: fix api (#8415) --- charger/openevse/api.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/charger/openevse/api.go b/charger/openevse/api.go index f8b2aaf55..0c10fe7fc 100644 --- a/charger/openevse/api.go +++ b/charger/openevse/api.go @@ -2106,7 +2106,7 @@ type GetStatusResponse struct { Voltage *float32 `json:"voltage,omitempty"` // The total amount of energy transfered, in W/hour - Watthour *int `json:"watthour,omitempty"` + Watthour *float32 `json:"watthour,omitempty"` // The amount of energy transfered in this charge session, in W/sec Wattsec *float32 `json:"wattsec,omitempty"` @@ -2285,7 +2285,7 @@ type StatusUpdatesResponse struct { Voltage *float32 `json:"voltage,omitempty"` // The total amount of energy transfered, in W/hour - Watthour *int `json:"watthour,omitempty"` + Watthour *float32 `json:"watthour,omitempty"` // The amount of energy transfered in this charge session, in W/sec Wattsec *float32 `json:"wattsec,omitempty"` @@ -3284,7 +3284,7 @@ func ParseGetStatusResponse(rsp *http.Response) (*GetStatusResponse, error) { Voltage *float32 `json:"voltage,omitempty"` // The total amount of energy transfered, in W/hour - Watthour *int `json:"watthour,omitempty"` + Watthour *float32 `json:"watthour,omitempty"` // The amount of energy transfered in this charge session, in W/sec Wattsec *float32 `json:"wattsec,omitempty"` @@ -3471,7 +3471,7 @@ func ParseStatusUpdatesResponse(rsp *http.Response) (*StatusUpdatesResponse, err Voltage *float32 `json:"voltage,omitempty"` // The total amount of energy transfered, in W/hour - Watthour *int `json:"watthour,omitempty"` + Watthour *float32 `json:"watthour,omitempty"` // The amount of energy transfered in this charge session, in W/sec Wattsec *float32 `json:"wattsec,omitempty"`