Change port
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
"image": "mcr.microsoft.com/devcontainers/python:1-3.11-bullseye",
|
"image": "mcr.microsoft.com/devcontainers/python:1-3.11-bullseye",
|
||||||
"name": "Versatile Thermostat integration",
|
"name": "Versatile Thermostat integration",
|
||||||
"appPort": [
|
"appPort": [
|
||||||
"9123:8123"
|
"8123:8123"
|
||||||
],
|
],
|
||||||
// "postCreateCommand": "container install",
|
// "postCreateCommand": "container install",
|
||||||
"postCreateCommand": "./container dev-setup",
|
"postCreateCommand": "./container dev-setup",
|
||||||
|
|||||||
4
.vscode/tasks.json
vendored
4
.vscode/tasks.json
vendored
@@ -2,13 +2,13 @@
|
|||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"tasks": [
|
"tasks": [
|
||||||
{
|
{
|
||||||
"label": "Run Home Assistant on port 9123",
|
"label": "Run Home Assistant on port 8123",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "./container start",
|
"command": "./container start",
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "Restart Home Assistant on port 9123",
|
"label": "Restart Home Assistant on port 8123",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "./container restart",
|
"command": "./container restart",
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
|
|||||||
@@ -11,11 +11,12 @@ if [[ ! -d "${PWD}/config" ]]; then
|
|||||||
mkdir -p "${PWD}/config"
|
mkdir -p "${PWD}/config"
|
||||||
# Add defaults configuration
|
# Add defaults configuration
|
||||||
hass --config "${PWD}/config" --script ensure_config
|
hass --config "${PWD}/config" --script ensure_config
|
||||||
# Overwrite configuration.yaml if provided
|
fi
|
||||||
if [ -f ${PWD}/.devcontainer/configuration.yaml ]; then
|
|
||||||
rm -f ${PWD}/config/configuration.yaml
|
# Overwrite configuration.yaml if provided
|
||||||
ln -s ${PWD}/.devcontainer/configuration.yaml ${PWD}/config/configuration.yaml
|
if [ -f ${PWD}/.devcontainer/configuration.yaml ]; then
|
||||||
fi
|
rm -f ${PWD}/config/configuration.yaml
|
||||||
|
ln -s ${PWD}/.devcontainer/configuration.yaml ${PWD}/config/configuration.yaml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set the path to custom_components
|
# Set the path to custom_components
|
||||||
|
|||||||
Reference in New Issue
Block a user