chore: fix Authorizer
This commit is contained in:
parent
09b3d7f077
commit
1c59405e5b
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue