mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-11-18 12:42:15 -05:00
cleanupses
This commit is contained in:
@@ -91,13 +91,6 @@ func (m *MediaSupervisor) selection(category string) (bool, string) {
|
||||
return m.cfg.Media.AudioPlayback.Enabled, m.cfg.Media.AudioPlayback.Profile
|
||||
}
|
||||
}
|
||||
func (m *MediaSupervisor) HandleAction(_ context.Context, action string) error {
|
||||
if action != "stop" {
|
||||
return fmt.Errorf("save configuration to start or restart media")
|
||||
}
|
||||
m.Stop()
|
||||
return nil
|
||||
}
|
||||
func (m *MediaSupervisor) supervise(ctx context.Context, category, id string) {
|
||||
var profile *MediaProfile
|
||||
for _, p := range m.profiles[category] {
|
||||
|
||||
Reference in New Issue
Block a user