fix: providerauth UI not shown (#22801)

Co-authored-by: Michael Geers <michael@geers.tv>
This commit is contained in:
lehmanju 2025-08-06 11:40:26 +02:00 • committed by GitHub
parent 11e769ea22
commit 8beafae54b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 9 deletions

View file

@ -50,7 +50,7 @@ export interface State {
forecast?: Forecast;
currency?: CURRENCY;
fatal?: FatalError[];
providerAuth?: AuthProviders;
authProviders?: AuthProviders;
version?: string;
battery?: Battery[];
tariffGrid?: number;

View file

@ -20,5 +20,5 @@ const (
Telemetry = "telemetry"
DemoMode = "demoMode"
AuthDisabled = "authDisabled"
ProviderAuth = "providerAuth"
AuthProviders = "authProviders"
)

View file

@ -85,16 +85,10 @@ func (a *Handler) Publish(paramC chan<- util.Param) {
apMap[provider.DisplayName()] = ap
}
val := struct {
AuthProviders map[string]*AuthProvider `json:"authProviders,omitempty"`
}{
AuthProviders: apMap,
}
a.log.DEBUG.Printf("publishing %d auth providers", len(apMap))
// publish the updated auth providers
paramC <- util.Param{Key: keys.ProviderAuth, Val: val}
paramC <- util.Param{Key: keys.AuthProviders, Val: apMap}
}
// Register registers a specific AuthProvider. Returns login path as string.