From 834c062b8c70802d08c97624ce0d85b6e3ce435c Mon Sep 17 00:00:00 2001 From: andig Date: Wed, 22 Jul 2026 16:37:08 +0200 Subject: [PATCH] Revert "Daheimladen: fix misleading sponsorship error on station id read (#31956)" This reverts commit 279c77ba9d2bb129a7c4962863006372b2484f47. --- charger/daheimladen.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/charger/daheimladen.go b/charger/daheimladen.go index 7a4e214cc..e65b4975c 100644 --- a/charger/daheimladen.go +++ b/charger/daheimladen.go @@ -20,7 +20,6 @@ package charger import ( "context" "encoding/binary" - "errors" "fmt" "time" @@ -94,11 +93,8 @@ func NewDaheimLaden(ctx context.Context, uri string, id uint8, phases bool) (api } c, err := conn.ReadHoldingRegisters(dlRegStationId, 16) - if err != nil { - return nil, fmt.Errorf("station id: %w", err) - } - if s, _ := utf16BEBytesAsString(c); s == "" { - return nil, errors.New("station id not found, device may not be a DaheimLaden") + if s, _ := utf16BEBytesAsString(c); err != nil || s == "" { + return nil, api.ErrSponsorRequired } log := util.NewLogger("daheimladen")