File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed
Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -38,17 +38,17 @@ func (v *Vehicle) Available() error {
3838}
3939
4040type BatteryStatus struct {
41- Timestamp string `json:"timestamp"`
42- ChargingStatus float32 `json:"chargingStatus"`
43- InstantaneousPower int `json:"instantaneousPower"`
44- RangeHvacOff int `json:"rangeHvacOff"`
45- BatteryAutonomy int `json:"batteryAutonomy"`
46- BatteryLevel * float64 `json:"batteryLevel"`
47- BatteryTemperature int `json:"batteryTemperature"`
48- PlugStatus int `json:"plugStatus"`
49- LastUpdateTime string `json:"lastUpdateTime"`
50- ChargePower int `json:"chargePower"`
51- RemainingTime * int `json:"chargingRemainingTime"`
41+ Timestamp string `json:"timestamp"`
42+ ChargingStatus float32 `json:"chargingStatus"`
43+ InstantaneousPower int `json:"instantaneousPower"`
44+ RangeHvacOff int `json:"rangeHvacOff"`
45+ BatteryAutonomy int `json:"batteryAutonomy"`
46+ BatteryLevel * int `json:"batteryLevel"`
47+ BatteryTemperature int `json:"batteryTemperature"`
48+ PlugStatus int `json:"plugStatus"`
49+ LastUpdateTime string `json:"lastUpdateTime"`
50+ ChargePower int `json:"chargePower"`
51+ RemainingTime * int `json:"chargingRemainingTime"`
5252}
5353
5454type HvacStatus struct {
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ func (v *Provider) Soc() (float64, error) {
7979 return 0 , api .ErrNotAvailable
8080 }
8181
82- return * res .BatteryLevel , nil
82+ return float64 ( * res .BatteryLevel ) , nil
8383}
8484
8585var _ api.ChargeState = (* Provider )(nil )
You can’t perform that action at this time.
0 commit comments