From c0d422a9162bb208658965b203843d1063c9decb Mon Sep 17 00:00:00 2001 From: Jean-Marc Collin Date: Sat, 21 Oct 2023 13:42:44 +0000 Subject: [PATCH] Change port --- .devcontainer/devcontainer.json | 2 +- .vscode/tasks.json | 4 ++-- scripts/starts_ha.sh | 11 ++++++----- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index b01c876..5628f0c 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -4,7 +4,7 @@ "image": "mcr.microsoft.com/devcontainers/python:1-3.11-bullseye", "name": "Versatile Thermostat integration", "appPort": [ - "9123:8123" + "8123:8123" ], // "postCreateCommand": "container install", "postCreateCommand": "./container dev-setup", diff --git a/.vscode/tasks.json b/.vscode/tasks.json index f01c64a..1e3f53a 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -2,13 +2,13 @@ "version": "2.0.0", "tasks": [ { - "label": "Run Home Assistant on port 9123", + "label": "Run Home Assistant on port 8123", "type": "shell", "command": "./container start", "problemMatcher": [] }, { - "label": "Restart Home Assistant on port 9123", + "label": "Restart Home Assistant on port 8123", "type": "shell", "command": "./container restart", "problemMatcher": [] diff --git a/scripts/starts_ha.sh b/scripts/starts_ha.sh index 3d70362..28263bf 100755 --- a/scripts/starts_ha.sh +++ b/scripts/starts_ha.sh @@ -11,11 +11,12 @@ if [[ ! -d "${PWD}/config" ]]; then mkdir -p "${PWD}/config" # Add defaults configuration hass --config "${PWD}/config" --script ensure_config - # Overwrite configuration.yaml if provided - if [ -f ${PWD}/.devcontainer/configuration.yaml ]; then - rm -f ${PWD}/config/configuration.yaml - ln -s ${PWD}/.devcontainer/configuration.yaml ${PWD}/config/configuration.yaml - fi +fi + +# Overwrite configuration.yaml if provided +if [ -f ${PWD}/.devcontainer/configuration.yaml ]; then + rm -f ${PWD}/config/configuration.yaml + ln -s ${PWD}/.devcontainer/configuration.yaml ${PWD}/config/configuration.yaml fi # Set the path to custom_components