From 55802ef64865dc830164fcc7fc08148f7d1e5b4b Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Fri, 5 Nov 2021 20:31:09 +0100 Subject: [PATCH] Fix 89af770d96782c53e4d1432b948c743c1a55e287 --- lib/extension/externalExtension.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/extension/externalExtension.ts b/lib/extension/externalExtension.ts index 834ad8bd..d7aaf961 100644 --- a/lib/extension/externalExtension.ts +++ b/lib/extension/externalExtension.ts @@ -75,7 +75,7 @@ export default class ExternalExtension extends Extension { if (match && this.requestLookup[match[1].toLowerCase()]) { const message = utils.parseJSON(data.message, data.message) as KeyValue; try { - const response = this.requestLookup[match[1].toLowerCase()](message); + const response = await this.requestLookup[match[1].toLowerCase()](message); await this.mqtt.publish(`bridge/response/extension/${match[1]}`, stringify(response)); } catch (error) { logger.error(`Request '${data.topic}' failed with error: '${error.message}'`);