From fe4b2f03bb9991366e26b8e573c09b6b1d267529 Mon Sep 17 00:00:00 2001 From: Mattias Persson Date: Wed, 24 Jan 2024 20:52:09 +0100 Subject: [PATCH] Revert hass_url configuration option --- data/configuration.yaml | 1 + server.js | 1 - src/lib/Modal/LoginModal.svelte | 15 ++++++++++----- src/lib/Socket.ts | 9 +++++---- src/routes/+page.server.ts | 23 ++++++++++++++++++++--- src/routes/+page.svelte | 7 ++++++- src/routes/api/auth/+server.ts | 5 +---- src/routes/api/auth/[flow_id]/+server.ts | 5 +---- 8 files changed, 44 insertions(+), 22 deletions(-) diff --git a/data/configuration.yaml b/data/configuration.yaml index 0ce74eac..03a0c036 100644 --- a/data/configuration.yaml +++ b/data/configuration.yaml @@ -1 +1,2 @@ locale: en +hassUrl: http://192.168.1.241:8123 diff --git a/server.js b/server.js index c1c5d04a..59a70f07 100644 --- a/server.js +++ b/server.js @@ -25,7 +25,6 @@ if (HASS_URL) { app.use(handler); app.listen(PORT, () => { - console.debug(`ENV HASS_URL: ${HASS_URL}`); console.debug(`ENV PORT: ${PORT}`); console.debug(`ENV ADDON ${process.env.ADDON || false}`); }); diff --git a/src/lib/Modal/LoginModal.svelte b/src/lib/Modal/LoginModal.svelte index 3bd540e9..8cb975d5 100644 --- a/src/lib/Modal/LoginModal.svelte +++ b/src/lib/Modal/LoginModal.svelte @@ -1,5 +1,5 @@