Loadpoint: cleanup phase configuration and drop deprecations (#18638)

This commit is contained in:
andig 2025-02-09 09:12:55 +01:00 • committed by GitHub
parent f93ceffa6d
commit 07fb01d28c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 183 additions and 188 deletions

View file

@ -27,6 +27,7 @@ const (
ClassInflux
ClassMessenger
ClassSponsorship
ClassLoadpoint
)
// FatalError is an error that can be marshaled
@ -57,7 +58,7 @@ type DeviceError struct {
}
func (e *DeviceError) Error() string {
return e.err.Error()
return "[" + e.Name + "] " + e.err.Error()
}
// ClassError indicates the class of devices that failed
@ -67,7 +68,7 @@ type ClassError struct {
}
func (e *ClassError) Error() string {
return e.err.Error()
return e.Class.String() + " " + e.err.Error()
}
func (e ClassError) MarshalJSON() ([]byte, error) {