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
5 changes: 2 additions & 3 deletions .github/actions/setup-python-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mutation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
24
26
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
nodejs 24.21.0
python 3.14.7
nodejs 26.13.0
python 3.14.10
9 changes: 7 additions & 2 deletions custom_components/robovac/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools>=61.0"]
requires = ["setuptools>=84.2.1"]
build-backend = "setuptools.build_meta"

[project]
Expand Down
24 changes: 13 additions & 11 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
homeassistant==2026.9.4
homeassistant==2026.10.4
4 changes: 2 additions & 2 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading