From 3319bf4c1cb517c0da8779e093c0c64b9c4cd1ba Mon Sep 17 00:00:00 2001 From: jason <37859597+zachowj@users.noreply.github.com> Date: Tue, 1 Oct 2024 16:43:10 -0700 Subject: [PATCH] fix(api): Await websocket send in ApiController --- src/nodes/api/ApiController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nodes/api/ApiController.ts b/src/nodes/api/ApiController.ts index 4bf624b41a..f0c630f7fc 100644 --- a/src/nodes/api/ApiController.ts +++ b/src/nodes/api/ApiController.ts @@ -110,7 +110,7 @@ export default class ApiController extends InputOutputController< this.debugToClient(JSON.stringify(data)); this.status.setSending(); - results = this.homeAssistant.websocket.send(data); + results = await this.homeAssistant.websocket.send(data); } await this.setCustomOutputs(