-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into pre-commit-ci-update-config
- Loading branch information
Showing
24 changed files
with
309 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"services": { | ||
"apply": { | ||
"description": "Pas die huidige Adaptive Lighting-instellings op ligte toe.", | ||
"fields": { | ||
"lights": { | ||
"description": "'n Lig (of lys van ligte) om die instellings op toe te pas. 💡" | ||
} | ||
} | ||
}, | ||
"change_switch_settings": { | ||
"fields": { | ||
"only_once": { | ||
"description": "Pas ligte net aan wanneer hulle aangeskakel is (`true`) of hou aan om dit aan te pas (`false`)" | ||
}, | ||
"sunrise_offset": { | ||
"description": "Pas sonsopkomstyd aan met 'n positiewe of negatiewe afwyking in sekondes. ⏰" | ||
}, | ||
"sunset_offset": { | ||
"description": "Pas sonsondergangtyd aan met 'n positiewe of negatiewe afwyking in sekondes. ⏰" | ||
} | ||
} | ||
} | ||
}, | ||
"options": { | ||
"step": { | ||
"init": { | ||
"title": "Aanpasbare beligting opsies", | ||
"data": { | ||
"adapt_only_on_bare_turn_on": "adapt_only_on_bare_turn_on: Wanneer ligte aanvanklik aangeskakel word. As dit op \"true\" gestel is, pas AL slegs aan as \"light.turn_on\" opgeroep word sonder om kleur of helderheid te spesifiseer. ❌🌈 Dit verhoed bv. aanpassing wanneer 'n toneel geaktiveer word. As `onwaar`, pas AL aan ongeag die teenwoordigheid van kleur of helderheid in die aanvanklike `diens_data`. Moet `oorname_beheer` geaktiveer moet word. 🕵️ " | ||
}, | ||
"data_description": { | ||
"sunrise_offset": "Pas sonsopkomstyd aan met 'n positiewe of negatiewe afwyking in sekondes. ⏰", | ||
"sunset_offset": "Pas sonsondergangtyd aan met 'n positiewe of negatiewe afwyking in sekondes. ⏰" | ||
} | ||
} | ||
} | ||
}, | ||
"title": "Aanpasbare beligting" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"options": { | ||
"step": { | ||
"init": { | ||
"title": "Opcije prilagodljivog osvjetljenja" | ||
} | ||
} | ||
}, | ||
"title": "prilagodi svjetlinu", | ||
"services": { | ||
"change_switch_settings": { | ||
"fields": { | ||
"only_once": { | ||
"description": "Prilagodi svjetla samo kada su uključena (true) ili ih neprestano prilagođavaj (false). 🔄" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
set -ex | ||
cd "$(dirname "$0")/.." | ||
|
||
pip install -r core/requirements.txt | ||
|
||
if grep -q 'codecov' core/requirements_test.txt; then | ||
# Older HA versions still have `codecov` in `requirements_test.txt` | ||
# however it is removed from PyPI, so we cannot install it | ||
sed -i '/codecov/d' core/requirements_test.txt | ||
fi | ||
pip install -r core/requirements_test.txt | ||
|
||
pip install -e core/ | ||
pip install ulid-transform # this is in Adaptive-lighting's manifest.json | ||
pip install $(python test_dependencies.py) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
cd "$(dirname "$0")/.." | ||
|
||
# Clone only if the folder doesn't exist | ||
if [[ ! -d "core" ]]; then | ||
git clone --depth 1 --branch dev https://github.com/home-assistant/core.git | ||
fi | ||
|
||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.