Fix EEBus UI config: save fails after successful validation (#28592)

This commit is contained in:
Andreas Linde 2026-03-27 14:33:06 +01:00 • committed by GitHub
parent 948dda081c
commit 23c6bbb431
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 18 additions and 2 deletions

View file

@ -99,6 +99,12 @@ func NewEEBus(ctx context.Context, ski, ip string, usage *templates.Usage) (api.
return nil, err
}
// unregister device when context is cancelled (e.g. UI config validation)
go func() {
<-ctx.Done()
eebus.Instance.UnregisterDevice(ski, c)
}()
// monitoring appliance
eebus.LogEntities(c.log.DEBUG, "MA MPC", c.ma.MaMPCInterface)
eebus.LogEntities(c.log.DEBUG, "MA MGCP", c.ma.MaMGCPInterface)