Skip to content

Commit 02d8f8a

Browse files
committed
Config updates
1 parent 190829a commit 02d8f8a

6 files changed

+46
-3
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ coverage.xml
1818
.storage
1919
automations.yaml
2020
blueprints
21-
configuration.yaml
21+
config/*
22+
!config/configuration.yaml
2223
deps
2324
home-assistant_v2*
2425
home-assistant.log*

config/configuration.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# https://www.home-assistant.io/integrations/default_config/
2+
default_config:
3+
4+
# https://www.home-assistant.io/integrations/homeassistant/
5+
homeassistant:
6+
debug: true
7+
8+
# https://www.home-assistant.io/integrations/logger/
9+
logger:
10+
default: info
11+
logs:
12+
custom_components.amshan: debug
13+
14+
debugpy:
15+
start: true
16+
wait: true

configuration.yaml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Loads default set of integrations. Do not remove.
2+
default_config:
3+
4+
# Load frontend themes from the themes folder
5+
frontend:
6+
themes: !include_dir_merge_named themes
7+
8+
automation: !include automations.yaml
9+
script: !include scripts.yaml
10+
scene: !include scenes.yaml
11+
12+
homeassistant:
13+
debug: true

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
pip>=21.0,<23.1
1+
pip>=21.3.1
22
colorlog
33
homeassistant

scripts/develop

+13-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,17 @@ set -e
44

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

7+
# Create config dir if not present
8+
if [[ ! -d "${PWD}/config" ]]; then
9+
mkdir -p "${PWD}/config"
10+
hass --config "${PWD}/config" --script ensure_config
11+
fi
12+
13+
# Set the path to custom_components
14+
## This let's us have the structure we want <root>/custom_components/amshan
15+
## while at the same time have Home Assistant configuration inside <root>/config
16+
## without resulting to symlinks.
17+
export PYTHONPATH="${PYTHONPATH}:${PWD}/custom_components"
18+
719
# Start Home Assistant
8-
hass -c . --debug
20+
hass --config "${PWD}/config" --debug

0 commit comments

Comments
 (0)