Fix startup blocked by onEvent handlers

This commit is contained in:
Koen Kanters
2021-11-11 21:00:16 +01:00
parent e547062702
commit 170ef40982
+1 -1
View File
@@ -7,7 +7,7 @@ import Extension from './extension';
export default class OnEvent extends Extension {
override async start(): Promise<void> {
for (const device of this.zigbee.devices(false)) {
await this.callOnEvent(device, 'start', {});
this.callOnEvent(device, 'start', {});
}
this.eventBus.onDeviceMessage(this, (data) => this.callOnEvent(data.device, 'message', this.convertData(data)));