Enyaq: fix charging state
This commit is contained in:
parent
17272d72f3
commit
1d8e084ab5
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ func (v *Provider) Status() (api.ChargeStatus, error) {
|
|||
if res.Plug.ConnectionState == "Connected" {
|
||||
status = api.StatusB
|
||||
}
|
||||
if res.Plug.ConnectionState == "Charging" {
|
||||
if res.Charging.State == "Charging" {
|
||||
status = api.StatusC
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue