mirror of
https://github.com/home-assistant/core.git
synced 2025-07-31 19:25:12 +02:00
Improve setup (#37075)
This commit is contained in:
19
script/setup
19
script/setup
@@ -1,11 +1,26 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
# Setups the repository.
|
||||
|
||||
# Stop on errors
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
mkdir -p config
|
||||
|
||||
python3 -m venv venv
|
||||
source venv/bin/activate
|
||||
|
||||
script/bootstrap
|
||||
|
||||
pre-commit install
|
||||
pip install -e .
|
||||
pip install -e . --constraint homeassistant/package_constraints.txt
|
||||
|
||||
hass --script ensure_config -c config
|
||||
|
||||
echo "
|
||||
logger:
|
||||
default: info
|
||||
logs:
|
||||
homeassistant.components.cloud: debug
|
||||
" >> config/configuration.yaml
|
||||
|
Reference in New Issue
Block a user