Skip to content

Commit 83fe0da

Browse files
committed
Fixes logic error (trigger on false device)
1 parent 62125bc commit 83fe0da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

huevent.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ func exit(device string, eventType string, triggerOn string, conf *config) {
257257

258258
for _, hook := range *conf.hooks {
259259

260-
if hook.DeviceID != device && hook.EventType != eventType {
260+
if hook.DeviceID != device || hook.EventType != eventType {
261261
continue
262262
}
263263

0 commit comments

Comments
 (0)