Skip to content

Commit

Permalink
Use ./config for HA configuration (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Apr 22, 2023
1 parent 09d556f commit d100c33
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
15 changes: 2 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,5 @@ coverage.xml


# Home Assistant configuration
.cloud
.HA_VERSION
.storage
automations.yaml
blueprints
configuration.yaml
deps
home-assistant_v2*
home-assistant.log*
tts
scenes.yaml
scripts.yaml
secrets.yaml
config/*
!config/configuration.yaml
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ This custom component is based on [integration_blueprint template](https://githu
It comes with development environment in a container, easy to launch
if you use Visual Studio Code. With this container you will have a stand alone
Home Assistant instance running and already configured with the included
[`configuration.yaml`](./configuration.yaml)
[`configuration.yaml`](./config/configuration.yaml)
file.

## License
Expand Down
File renamed without changes.
14 changes: 13 additions & 1 deletion scripts/develop
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,17 @@ set -e

cd "$(dirname "$0")/.."

# Create config dir if not present
if [[ ! -d "${PWD}/config" ]]; then
mkdir -p "${PWD}/config"
hass --config "${PWD}/config" --script ensure_config
fi

# Set the path to custom_components
## This let's us have the structure we want <root>/custom_components/integration_blueprint
## while at the same time have Home Assistant configuration inside <root>/config
## without resulting to symlinks.
export PYTHONPATH="${PYTHONPATH}:${PWD}/custom_components"

# Start Home Assistant
hass -c . --debug
hass --config "${PWD}/config" --debug

0 comments on commit d100c33

Please sign in to comment.