From 1c59405e5bf086fdd97831b3c4fdf6bafba54cef Mon Sep 17 00:00:00 2001 From: andig Date: Thu, 29 May 2025 16:19:07 +0200 Subject: [PATCH] chore: fix Authorizer --- plugin/auth/viessmann.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/auth/viessmann.go b/plugin/auth/viessmann.go index 116da2d8e..dd90e58ea 100644 --- a/plugin/auth/viessmann.go +++ b/plugin/auth/viessmann.go @@ -68,11 +68,11 @@ func NewViessmannFromConfig(ctx context.Context, other map[string]any) (Authoriz return v, nil } -func (v *Viessmann) Transport(base http.RoundTripper) (http.RoundTripper, error) { +func (v *Viessmann) Transport(base http.RoundTripper) http.RoundTripper { return &oauth2.Transport{ Base: base, Source: v.ts, - }, nil + } } func (v *Viessmann) login(ctx context.Context, oc *oauth2.Config, user, password string) (*oauth2.Token, error) {