From ce4d3a3dbe92098e00c08d834755bf84ebf561aa Mon Sep 17 00:00:00 2001 From: Emily Wotruba <65018094+emilywotruba@users.noreply.github.com> Date: Tue, 21 May 2024 20:40:59 +0200 Subject: [PATCH] returning fetch to make `fetchServerStatus` awaitable Co-authored-by: Bastien Wirtz --- src/components/services/HomeAssistant.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/services/HomeAssistant.vue b/src/components/services/HomeAssistant.vue index f1bf2bc..f43bf98 100644 --- a/src/components/services/HomeAssistant.vue +++ b/src/components/services/HomeAssistant.vue @@ -93,7 +93,7 @@ export default { fetchServerStatus: async function () { const headers = this.headers; - this.fetch("/api/", { headers }) + return this.fetch("/api/", { headers }) .then((response) => { if (response && response.message) this.status = "running"; else throw new Error();