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")