Skip to content

Commit

Permalink
fix(api): Await websocket send in ApiController
Browse files Browse the repository at this point in the history
  • Loading branch information
zachowj committed Oct 1, 2024
1 parent 4d31bb7 commit 3319bf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nodes/api/ApiController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 3319bf4

Please sign in to comment.