⬆️ Migrate test and CI environment to Python 3.13 #24

Merged
mat merged 2 commits from test-env-py313 into main 2026-07-05 07:38:28 +00:00
Owner

The pytest-homeassistant-custom-component versions supporting Python 3.12 are stuck on HA 2025.1, which blocks upgrading comwatt-client (0.2.4 pins requests>=2.32.4, only shipped by HA ≥ 2025.6).

  • CI containers: python3.12-nodejs20python3.13-nodejs20 (lint, pytest, mypy jobs)
  • requirements-test.txt: pytest 9, phcc ≥ 0.13.316 (→ HA 2026.2.3)
  • mypy.ini: python_version = 3.13 — HA 2026 uses PEP 696 type parameter defaults, which mypy rejects when targeting 3.12

Depends on #23 (based on feat/c7-reauth): under HA 2026, raising ConfigEntryAuthFailed without a reauth step is a fatal UnknownStep error in the coordinator test.

Part 2/3 — followed by the comwatt-client 0.2.4 bump.

The `pytest-homeassistant-custom-component` versions supporting Python 3.12 are stuck on HA 2025.1, which blocks upgrading `comwatt-client` (0.2.4 pins `requests>=2.32.4`, only shipped by HA ≥ 2025.6). - CI containers: `python3.12-nodejs20` → `python3.13-nodejs20` (lint, pytest, mypy jobs) - `requirements-test.txt`: pytest 9, phcc ≥ 0.13.316 (→ HA 2026.2.3) - `mypy.ini`: `python_version = 3.13` — HA 2026 uses PEP 696 type parameter defaults, which mypy rejects when targeting 3.12 **Depends on #23** (based on `feat/c7-reauth`): under HA 2026, raising `ConfigEntryAuthFailed` without a reauth step is a fatal `UnknownStep` error in the coordinator test. Part 2/3 — followed by the comwatt-client 0.2.4 bump.
⬆️ Migrate test and CI environment to Python 3.13
All checks were successful
Validate / validate-hacs (push) Has been skipped
Validate / validate-hassfest (push) Has been skipped
Validate / lint-ruff (push) Successful in 7s
Validate / test-pytest (push) Successful in 3m1s
Validate / type-check-mypy (push) Successful in 3m6s
Validate / validate-hacs (pull_request) Has been skipped
Validate / validate-hassfest (pull_request) Has been skipped
Validate / lint-ruff (pull_request) Successful in 7s
Validate / test-pytest (pull_request) Successful in 3m2s
Validate / type-check-mypy (pull_request) Successful in 3m6s
397da8f15c
pytest-homeassistant-custom-component versions supporting Python 3.12
are stuck on HA 2025.1; move CI containers to python3.13, pytest 9 and
phcc 0.13.316 (HA 2026.2.3). mypy python_version follows since HA 2026
uses PEP 696 type parameter defaults.
mat changed target branch from feat/c7-reauth to main 2026-07-05 07:36:28 +00:00
mat merged commit 239040421f into main 2026-07-05 07:38:28 +00:00
mat deleted branch test-env-py313 2026-07-05 07:38:28 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mat/homeassistant-comwatt!24
No description provided.