Renault: fix status detection (#14630)
This commit is contained in:
parent
4b2d137e63
commit
4d940265ce
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue