cleanupses

This commit is contained in:
legop3
2026-11-17 00:34:27 -05:00
parent 2d9b6e4a36
commit c384a1389a
27 changed files with 64 additions and 1346 deletions
-7
View File
@@ -35,7 +35,6 @@ type managementCommand struct {
Reboot *rebootPayload `json:"reboot"`
Category string `json:"category"`
Profile *MediaProfile `json:"profile"`
Media *mediaCommand `json:"media"`
}
func NewManagementClient(cfg *Config, path string, events chan RoverEvent, logger *log.Logger, restart func()) *ManagementClient {
@@ -163,12 +162,6 @@ func (m *ManagementClient) execute(ctx context.Context, command managementComman
}
return m.restart, nil
}
if command.Type == "media" {
if m.media == nil || command.Media == nil {
return nil, fmt.Errorf("media supervisor unavailable")
}
return nil, m.media.HandleAction(ctx, command.Media.Action)
}
var config *Config
var err error
switch command.Type {