We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 096e236 commit 898859aCopy full SHA for 898859a
2 files changed
pkg/plugin/config.go
@@ -1,6 +1,8 @@
1
package plugin
2
3
-import "fmt"
+import (
4
+ "fmt"
5
+)
6
7
type GlobalSettings struct {
8
Radios []RadioSettings `json:"radios"`
@@ -13,6 +15,9 @@ type RadioSettings struct {
13
15
14
16
func parseGlobalSettings(settings map[string]any) (GlobalSettings, error) {
17
result := GlobalSettings{}
18
+ if len(settings) == 0 {
19
+ return result, nil
20
+ }
21
22
radios, ok := settings["radios"].([]any)
23
if !ok {
pkg/plugin/plugin.go
@@ -35,7 +35,6 @@ func (p *Plugin) Start() {
35
// p.deck.GetGlobalSettings blocks until p.deck.Start is called, which can only happen after p.Start was called -> we use a goroutine
36
go func() {
37
p.deck.GetGlobalSettings(p.uuid)
38
- log.Printf("global settings triggered\n")
39
}()
40
}
41
0 commit comments