Skip to content
Closed
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
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: uv
directory: /
schedule:
interval: weekly
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
16 changes: 0 additions & 16 deletions .github/issue-close-app.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/lock.yml

This file was deleted.

61 changes: 0 additions & 61 deletions .github/stale.yml

This file was deleted.

54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CI

on:
push:
branches: [master]
pull_request:
workflow_dispatch:

permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@v10
with:
enable-cache: true
# Only tests/ and scripts/ for now; the integration gets linted when it is refactored.
- run: uv run ruff check tests scripts
- run: uv run ruff format --check tests scripts

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@v10
with:
enable-cache: true
- run: uv sync --locked
- run: uv run pytest

version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@v10
- run: uv run --no-project python scripts/check_version.py

hassfest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: home-assistant/actions/hassfest@master

hacs:
runs-on: ubuntu-latest
steps:
- uses: hacs/action@main
with:
category: integration
# entity_controller has no entry in home-assistant/brands.
ignore: brands
57 changes: 0 additions & 57 deletions .github/workflows/master.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release

on:
push:
tags: ["v*"]

permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@v10
- name: Check versions match the tag
run: uv run --no-project python scripts/check_version.py "${GITHUB_REF_NAME}"
- name: Build HACS zip
working-directory: custom_components/entity_controller
run: zip -r "${GITHUB_WORKSPACE}/entity_controller.zip" . -x "__pycache__/*"
- uses: softprops/action-gh-release@v3
with:
files: entity_controller.zip
generate_release_notes: true
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ __pycache__/
node_modules/
.idea/
*.bak
.venv/
.pytest_cache/
.ruff_cache/
*.egg-info
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.14
19 changes: 18 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
# Change Log

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
All notable changes to this project will be documented in this file.

## Unreleased

### Breaking Changes

* Requires Home Assistant 2026.10 or newer (Python 3.14).

### Bug Fixes

* Timers now run on Home Assistant's event loop (`async_call_later`) instead of separate threads.
* Service calls and the `activate`, `clear_block`, `enable_block`, `enable_stay_mode`, `disable_stay_mode` and `set_night_mode` services run on the event loop, fixing thread-safety errors on current Home Assistant.
* `services.yaml` now documents `enable_stay_mode` and `disable_stay_mode`, the names the services are actually registered under (previously `set_stay_on` and `set_stay_off`).

### Chores

* Fork maintained at [Pabsilon/entity-controller](https://github.com/Pabsilon/entity-controller).
* Tooling moved to uv, with pytest-homeassistant-custom-component tests and GitHub Actions for CI and tag-based releases.

<a name="9.7.6"></a>
## [9.7.6](https://github.com/danobot/entity-controller/compare/v9.7.5...v9.7.6) (2024-05-04)
Expand Down
14 changes: 0 additions & 14 deletions Dockerfile

This file was deleted.

15 changes: 0 additions & 15 deletions Dockerfile.ci-test

This file was deleted.

25 changes: 0 additions & 25 deletions Dockerfile.component

This file was deleted.

Loading