core/script/setup

27 lines
428 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
# Setups the repository.
# Stop on errors
set -e
cd "$(dirname "$0")/.."
2020-06-25 18:34:47 +00:00
mkdir -p config
python3 -m venv venv
source venv/bin/activate
script/bootstrap
2019-07-30 23:59:12 +00:00
pre-commit install
python3 -m pip install -e . --constraint homeassistant/package_constraints.txt
2020-06-25 18:34:47 +00:00
hass --script ensure_config -c config
echo "
logger:
default: info
logs:
homeassistant.components.cloud: debug
" >> config/configuration.yaml