diff --git a/api/lib/ZwaveClient.ts b/api/lib/ZwaveClient.ts index b23aa84744..7004d643a0 100644 --- a/api/lib/ZwaveClient.ts +++ b/api/lib/ZwaveClient.ts @@ -3990,7 +3990,7 @@ class ZwaveClient extends TypedEventEmitter { logger.log('info', 'Calling api %s with args: %o', apiName, args) - if (this.driverReady || this.driver.isInBootloader()) { + if (this.driverReady || this.driver?.isInBootloader()) { try { const allowed = typeof this[apiName] === 'function' &&