EEBus: enable SHIP Pairing Service (#30842)

This commit is contained in:
andig 2026-07-04 11:36:53 +02:00 • committed by GitHub
parent f01ecb6909
commit 3a560d1254
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 663 additions and 39 deletions

View file

@ -937,6 +937,18 @@ func configureEEBus(conf *eebus.Config) error {
}
}
// generate a SHIP pairing secret for configs that predate SHIP pairing
if conf.Secret == "" {
secret, err := eebus.CreatePairingSecret()
if err != nil {
return err
}
conf.Secret = secret
if err := settings.SetJson(keys.EEBus, conf); err != nil {
return err
}
}
srv, err := eebus.NewServer(*conf)
if err != nil {
return fmt.Errorf("failed configuring eebus: %w", err)