Fronius Solar API: fix battery mode for firmware >= 1.38 (#27711)

This commit is contained in:
Ingo 2026-02-26 15:10:46 +01:00 • committed by GitHub
parent ea857537f2
commit fabf42918d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,6 +2,7 @@ package plugin
import (
"context"
"crypto/sha256"
"fmt"
"net/http"
"strings"
@ -13,6 +14,11 @@ import (
"golang.org/x/oauth2"
)
func init() {
// some servers send SHA256 instead of the RFC 7616 compliant SHA-256
digest.Algs["SHA256"] = sha256.New
}
// Auth is the authorization config
type Auth struct {
Type, User, Password, Token string