mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-11 14:24:03 +02:00
Fix test_proactive_adaptation_with_separate_commands (#970)
* Add link script * Set run_immediately=False * Add await hass.async_block_till_done() * Use scripts/link * Rename scripts * Links in devcontainer * Install from setup script
This commit is contained in:
parent
47cbda5c5e
commit
d23f6ec63a
10 changed files with 29 additions and 46 deletions
|
|
@ -7,5 +7,12 @@ if [[ ! -d "core" ]]; then
|
|||
git clone --depth 1 --branch dev https://github.com/home-assistant/core.git
|
||||
fi
|
||||
|
||||
./scripts/install_ha
|
||||
pip install \
|
||||
colorlog==6.7.0 \
|
||||
pip>=21.0,<23.2 \
|
||||
ruff==0.0.265 \
|
||||
pre-commit
|
||||
|
||||
./scripts/setup-dependencies
|
||||
./scripts/setup-symlinks
|
||||
pre-commit install-hooks
|
||||
|
|
|
|||
13
scripts/setup-symlinks
Executable file
13
scripts/setup-symlinks
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
set -ex
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
# Link custom components
|
||||
cd core/homeassistant/components/
|
||||
ln -fs ../../../custom_components/adaptive_lighting adaptive_lighting
|
||||
cd -
|
||||
|
||||
# Link tests
|
||||
cd core/tests/components/
|
||||
ln -fs ../../../tests/ adaptive_lighting
|
||||
cd -
|
||||
Loading…
Add table
Add a link
Reference in a new issue