Merge pull request #6571 from homarr-labs/feat/fix-home-assistant-actions

This commit is contained in:
Thomas authored and GitHub committed 2026-08-16 00:23:14 +02:00
commit df438b4cd2
6 files changed
+75 -3

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",
});