Fix Renault chargingStatus (#642)

This commit is contained in:
premultiply 2021-02-02 22:54:58 +01:00 • committed by GitHub
parent ca988fcf2b
commit b12c112af7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -336,7 +336,7 @@ func (v *Renault) Status() (api.ChargeStatus, error) {
if res.Data.Attributes.PlugStatus > 0 {
status = api.StatusB
}
if res.Data.Attributes.ChargingStatus > 1.0 {
if res.Data.Attributes.ChargingStatus >= 1.0 {
status = api.StatusC
}
}