Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 0 additions & 63 deletions .github/ISSUE_TEMPLATE/bug-report.md

This file was deleted.

14 changes: 0 additions & 14 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/ISSUE_TEMPLATE/doc.md

This file was deleted.

8 changes: 0 additions & 8 deletions .github/ISSUE_TEMPLATE/enhancement.md

This file was deleted.

8 changes: 0 additions & 8 deletions .github/ISSUE_TEMPLATE/feature.md

This file was deleted.

6 changes: 0 additions & 6 deletions .github/auto-comment.yml

This file was deleted.

64 changes: 0 additions & 64 deletions .github/config.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .github/release-drafter.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"rebaseWhen": "behind-base-branch",
"dependencyDashboard": true,
"dependencyDashboard": false,
"labels": [
"dependencies",
"no-stale"
Expand Down Expand Up @@ -29,7 +29,7 @@
"minor",
"patch"
],
"automerge": true
"automerge": false
}
],
"extends": [
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ jobs:
echo "Webapp integrated at site/simulator/"

- name: Upload artifact
# PRs can never deploy (the deploy job is gated to push on main), so only
# upload the Pages artifact on push. PRs still run the build as a sanity check.
if: github.event_name != 'pull_request'
uses: actions/upload-pages-artifact@v4
with:
path: ./site
Expand Down
21 changes: 7 additions & 14 deletions .github/workflows/markdown-code-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,12 @@ jobs:

- name: Check for changes
run: |
# Drift gate only: fail loudly if generated content is stale. The PR
# trigger keeps `main` clean, so we no longer auto-commit/push to main
# (that raced with toc.yaml and re-triggered every push:[main] workflow).
if [ -n "$(git status --porcelain)" ]; then
if [ "${{ github.event_name }}" == "pull_request" ]; then
echo "::error::Auto-generated files are not up to date. Please run './scripts/update-generated-content' locally and push the changes."
exit 1
else
echo "Changes detected, committing and pushing..."
git add -u .
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "Update auto-generated content"
git pull --rebase
git push
fi
else
echo "No changes detected."
echo "::error::Auto-generated files are not up to date. Run './scripts/update-generated-content' locally and commit the changes."
git diff
exit 1
fi
echo "No changes detected."
22 changes: 0 additions & 22 deletions .github/workflows/release-drafter.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .github/workflows/toc.yaml

This file was deleted.

7 changes: 3 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ repos:
hooks:
- id: ruff
args: ["--fix"]
- repo: https://github.com/psf/black
rev: 25.1.0
hooks:
- id: black
# ruff-format replaces black so the formatter matches local tooling
# (editors run ruff format) and avoids black-vs-ruff formatting churn.
- id: ruff-format
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
Expand Down
2 changes: 2 additions & 0 deletions .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ select = ["ALL"]
ignore = [
"ANN",
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in {name}
"COM812", # Trailing comma -- conflicts with ruff-format; let the formatter own it
"ISC001", # Implicit string concat on one line -- conflicts with ruff-format
"D401", # First line of docstring should be in imperative mood
"E501", # line too long
"FBT001", # Boolean positional arg in function definition
Expand Down
6 changes: 2 additions & 4 deletions custom_components/adaptive_lighting/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ class TakeOverControlMode(Enum):

CONF_INITIAL_TRANSITION, DEFAULT_INITIAL_TRANSITION = "initial_transition", 1
DOCS[CONF_INITIAL_TRANSITION] = (
"Duration of the first transition when lights turn "
"from `off` to `on` in seconds. ⏲️"
"Duration of the first transition when lights turn from `off` to `on` in seconds. ⏲️"
)

CONF_SLEEP_TRANSITION, DEFAULT_SLEEP_TRANSITION = "sleep_transition", 1
Expand Down Expand Up @@ -207,8 +206,7 @@ class TakeOverControlMode(Enum):

CONF_MAX_SUNRISE_TIME = "max_sunrise_time"
DOCS[CONF_MAX_SUNRISE_TIME] = (
"Set the latest virtual sunrise time (HH:MM:SS), allowing"
" for earlier sunrises. 🌅"
"Set the latest virtual sunrise time (HH:MM:SS), allowing for earlier sunrises. 🌅"
)

CONF_SUNSET_OFFSET, DEFAULT_SUNSET_OFFSET = "sunset_offset", 0
Expand Down
6 changes: 3 additions & 3 deletions tests/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ async def test_sensor_platform_not_loaded(hass):

sensor_entities = hass.states.async_entity_ids("sensor")
al_sensors = [e for e in sensor_entities if "adaptive_lighting" in e]
assert (
al_sensors == []
), f"No adaptive_lighting sensor entities should exist, found: {al_sensors}"
assert al_sensors == [], (
f"No adaptive_lighting sensor entities should exist, found: {al_sensors}"
)


async def test_no_attr_adaptive_lighting_manager_in_domain_data_on_entry_setup(hass):
Expand Down
Loading
Loading