From 51b83eb53ef6248306795418d66d36ac29ed37ac Mon Sep 17 00:00:00 2001 From: Dan Webb Date: Wed, 28 Oct 2026 22:37:57 +0000 Subject: [PATCH] chore(deps): refresh compatible dependencies --- .github/actions/setup-python-env/action.yml | 5 ++--- .github/workflows/ci.yml | 2 +- .github/workflows/docs.yml | 2 +- .github/workflows/mutation.yml | 2 +- .github/workflows/release.yaml | 6 +++--- .nvmrc | 2 +- .pre-commit-config.yaml | 6 +++--- .tool-versions | 4 ++-- custom_components/robovac/config_flow.py | 9 ++++++-- pyproject.toml | 2 +- requirements-dev.txt | 24 +++++++++++---------- requirements.txt | 2 +- uv.lock | 4 ++-- 13 files changed, 38 insertions(+), 32 deletions(-) diff --git a/.github/actions/setup-python-env/action.yml b/.github/actions/setup-python-env/action.yml index 059cb6f2..1916e908 100644 --- a/.github/actions/setup-python-env/action.yml +++ b/.github/actions/setup-python-env/action.yml @@ -19,7 +19,7 @@ runs: using: "composite" steps: - name: Set up Python - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7 + uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 with: python-version: ${{ inputs.python-version }} @@ -30,8 +30,7 @@ runs: repo-token: ${{ github.token }} # Use github.token in composite actions - name: Install uv - # Using the specific commit SHA you had, as it might be intentional over a simple vX tag - uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # From user's ci.yml + uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3 - name: Install Python dependencies shell: bash diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index edfe7912..8214df4d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,7 +38,7 @@ jobs: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - name: Run Markdown Lint - uses: DavidAnson/markdownlint-cli2-action@21c1be1b93ad9ed58fa840aacc3f279cde2a72ff # v24 + uses: DavidAnson/markdownlint-cli2-action@696eb3f2509270d7b882d2aa68347bc676e7af34 # v25.0.0 with: globs: "**/*.md" diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index ae957e0f..c2529899 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -42,7 +42,7 @@ jobs: python-version: 3.x - name: Set up uv - uses: astral-sh/setup-uv@v10.2.0 + uses: astral-sh/setup-uv@v10.3.3 - name: Install dependencies run: uv pip install --system zensical diff --git a/.github/workflows/mutation.yml b/.github/workflows/mutation.yml index c5588fed..861f70c6 100644 --- a/.github/workflows/mutation.yml +++ b/.github/workflows/mutation.yml @@ -25,7 +25,7 @@ jobs: - name: Upload mutation reports if: always() - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: mutation-reports if-no-files-found: ignore diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d211d957..e226f03f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -19,13 +19,13 @@ jobs: version: ${{ steps.release.outputs.version }} steps: - name: Harden Runner - uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1 + uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3 with: egress-policy: audit - name: Generate GitHub App Token id: generate_token - uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 + uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0 with: app-id: ${{ secrets.APP_ID }} private-key: ${{ secrets.APP_PRIVATE_KEY }} @@ -43,7 +43,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Harden Runner - uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1 + uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3 with: egress-policy: audit diff --git a/.nvmrc b/.nvmrc index a45fd52c..6f4247a6 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -24 +26 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f1cbe46c..1e80c318 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -11,13 +11,13 @@ repos: - id: debug-statements - repo: https://github.com/pycqa/flake8 - rev: 7.2.0 + rev: 7.5.0 hooks: - id: flake8 additional_dependencies: [flake8-docstrings] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.15.0 + rev: v2.4.0 hooks: - id: mypy additional_dependencies: [types-requests] diff --git a/.tool-versions b/.tool-versions index 77d317d5..83946a30 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,2 @@ -nodejs 24.21.0 -python 3.14.7 +nodejs 26.13.0 +python 3.14.10 diff --git a/custom_components/robovac/config_flow.py b/custom_components/robovac/config_flow.py index e305f22c..ebec3b45 100644 --- a/custom_components/robovac/config_flow.py +++ b/custom_components/robovac/config_flow.py @@ -19,10 +19,9 @@ import json import logging from copy import deepcopy -from typing import Any, Optional +from typing import TYPE_CHECKING, Any, Optional import requests -import voluptuous as vol import homeassistant.helpers.config_validation as cv from homeassistant import config_entries @@ -45,6 +44,12 @@ from homeassistant.core import HomeAssistant, callback from homeassistant.exceptions import HomeAssistantError +if TYPE_CHECKING: + import probatio as vol +else: + # Home Assistant 2026.9+ aliases voluptuous to Probatio at startup. + import voluptuous as vol + from .const import ( CONF_AUTODISCOVERY, CONF_ROOM_SEGMENT_MAP_ID, diff --git a/pyproject.toml b/pyproject.toml index cd53b4e4..60a9c6b4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools>=61.0"] +requires = ["setuptools>=84.2.1"] build-backend = "setuptools.build_meta" [project] diff --git a/requirements-dev.txt b/requirements-dev.txt index 3ce4ff17..667b4fed 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,15 +1,17 @@ -# Testing dependencies -pytest>=8.0.0 -pytest-asyncio>=0.23.0 -pytest-cov>=4.1.0 -pytest-homeassistant-custom-component>=0.13.333 -mutmut>=3.6.0 +-r requirements.txt + +# Testing dependencies (pytest versions match the Home Assistant test package) +pytest>=9.0.3 +pytest-asyncio>=1.4.0 +pytest-cov>=7.1.0 +pytest-homeassistant-custom-component>=0.13.375 +mutmut>=3.8.1 # Code quality tools -flake8>=7.0.0 -mypy>=1.7.1 -pre-commit>=3.5.0 -lefthook>=1.6.0 # Git hooks manager +flake8>=7.5.0 +mypy>=2.4.1 +pre-commit>=4.7.0 +lefthook>=2.2.2 # Git hooks manager # Type checking -types-requests>=2.31.0 +types-requests>=2.33.0.20261006 diff --git a/requirements.txt b/requirements.txt index 7305ef75..20eb20a5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -homeassistant==2026.9.4 +homeassistant==2026.10.4 diff --git a/uv.lock b/uv.lock index a5cd10b8..38eac7aa 100644 --- a/uv.lock +++ b/uv.lock @@ -1,8 +1,8 @@ version = 1 -revision = 3 +revision = 5 requires-python = ">=3.14.2" [[package]] name = "robovac" -version = "2.4.3" +version = "2.5.0" source = { editable = "." }