From b4cfa9592696d326fca3b33b574c387d8a9d154c Mon Sep 17 00:00:00 2001 From: RenatusRo <126881912+RenatusRo@users.noreply.github.com> Date: Tue, 11 Nov 2025 10:41:56 +0100 Subject: [PATCH] GO-E: fix panic on invalid RFID index (#25226) --- charger/go-e/types2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }