Use proper comparison of boolean effects
Use proper comparison of boolean effects

Fix #1341

moziot/gateway,mozilla-iot/gateway,mozilla-iot/gateway,mozilla-iot/gateway,moziot/gateway,moziot/gateway,mozilla-iot/gateway,mozilla-iot/gateway