We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
onEvent
1 parent 85356a2 commit ef2c939Copy full SHA for ef2c939
lib/extension/onEvent.ts
@@ -40,6 +40,7 @@ export default class OnEvent extends Extension {
40
}
41
42
private async callOnEvent(device: Device, type: zhc.OnEventType, data: KeyValue): Promise<void> {
43
+ if (device.options.disabled) return;
44
const state = this.state.get(device);
45
await zhc.onEvent(type, data, device.zh);
46
0 commit comments