Skip to content

Commit

Permalink
do not filter group -1
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetancollaud committed Jan 11, 2022
1 parent 88f55f2 commit 7b592f7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions digitalstrom/digitalstrom.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,6 @@ func (ds *Digitalstrom) digitalstromCron() {

func (ds *Digitalstrom) eventReceived(events chan Event) {
for event := range events {
if event.GroupId == -1 {
log.Info().
Int("SceneId", event.SceneId).
Int("GroupId", event.GroupId).
Int("ZoneId", event.ZoneId).
Msg("Event ignored, groupId -1 is unknown")
} else {
log.Info().
Int("SceneId", event.SceneId).
Int("GroupId", event.GroupId).
Expand All @@ -95,7 +88,6 @@ func (ds *Digitalstrom) eventReceived(events chan Event) {
// update again because maybe the three was not up to date yet
ds.devicesManager.updateZone(event.ZoneId)
})
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.15

require (
github.com/eclipse/paho.mqtt.golang v1.3.2
github.com/google/uuid v1.2.0 // indirect
github.com/google/uuid v1.2.0
github.com/rs/zerolog v1.21.0
github.com/spf13/viper v1.7.1
)

0 comments on commit 7b592f7

Please sign in to comment.