Renault: fix status detection (#14630)

This commit is contained in:
andig 2024-06-30 12:08:07 +02:00 • committed by GitHub
parent 4b2d137e63
commit 4d940265ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -74,7 +74,7 @@ func (v *Provider) Status() (api.ChargeStatus, error) {
res, err := v.batteryG()
if err == nil {
if res.Data.Attributes.PlugStatus > 0 {
if res.Data.Attributes.PlugStatus == 1 {
status = api.StatusB
}
if res.Data.Attributes.ChargingStatus >= 1.0 {