fix Home Assistant widget actions

This commit is contained in:
Thomas Camlong committed 2026-08-13 16:21:48 +02:00
1 parent 2513e8454f
commit e761c10f32
6 files changed
+74 -4

No files matched your search

@@ -134,7 +134,10 @@ export class HomeAssistantIntegration extends Integration implements ISmartHomeI
*/
private async postAsync(path: `/api/${string}`, body: Record<string, string>) {
return await fetchWithTrustedCertificatesAsync(this.url(path), {
headers: this.getAuthHeaders(),
headers: {
...this.getAuthHeaders(),
"Content-Type": "application/json",
},
body: JSON.stringify(body),
method: "POST",
});