2020-07-17 18:27:46 +02:00
|
|
|
#!/usr/bin/env bash
|
2017-01-02 22:04:09 +01:00
|
|
|
# Setups the repository.
|
|
|
|
|
|
|
|
# Stop on errors
|
|
|
|
set -e
|
2015-09-17 00:35:26 -07:00
|
|
|
|
2017-01-02 22:04:09 +01:00
|
|
|
cd "$(dirname "$0")/.."
|
2020-06-25 11:34:47 -07:00
|
|
|
|
|
|
|
mkdir -p config
|
|
|
|
|
|
|
|
python3 -m venv venv
|
|
|
|
source venv/bin/activate
|
|
|
|
|
2015-09-17 00:35:26 -07:00
|
|
|
script/bootstrap
|
2017-05-24 15:31:51 -07:00
|
|
|
|
2019-07-30 16:59:12 -07:00
|
|
|
pre-commit install
|
2020-07-17 18:27:46 +02:00
|
|
|
python3 -m pip install -e . --constraint homeassistant/package_constraints.txt
|
2020-06-25 11:34:47 -07:00
|
|
|
|
|
|
|
hass --script ensure_config -c config
|
|
|
|
|
|
|
|
echo "
|
|
|
|
logger:
|
|
|
|
default: info
|
|
|
|
logs:
|
|
|
|
homeassistant.components.cloud: debug
|
|
|
|
" >> config/configuration.yaml
|