diff --git a/charger/go-e/types2.go b/charger/go-e/types2.go index 4b0d12c89..88c719c54 100644 --- a/charger/go-e/types2.go +++ b/charger/go-e/types2.go @@ -65,7 +65,7 @@ func (g *StatusResponse2) Voltages() (float64, float64, float64) { } func (g *StatusResponse2) Identify() string { - if g.Trx > 0 { + if g.Trx > 0 && len(g.Cards) >= g.Trx { return g.Cards[g.Trx-1].Name }