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
10 changes: 3 additions & 7 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,14 @@ jobs:
with:
args: format --diff
src: "."
version-file: "requirements.txt"

- name: Run ruff check
uses: astral-sh/ruff-action@0ce1b0bf8b818ef400413f810f8a11cdbda0034b # v4.0.0
with:
args: check --exit-zero # succeed despite errors until https://github.com/custom-components/zaptec/issues/258 is done
src: "."

- name: Run strict ruff check (except api.py)
uses: astral-sh/ruff-action@v3
with:
args: check --exclude custom_components/zaptec/zaptec/api.py
args: check
src: "."
version-file: "requirements.txt"

manifest-requirements:
name: Manifest requirements validation
Expand Down
3 changes: 2 additions & 1 deletion custom_components/zaptec/zaptec/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,8 @@ def _parse_retry_after(value: str | None) -> float | None:
"""Parse a Retry-After header value into seconds.

Only the integer delta-seconds form is supported; the HTTP-date form
returns None so the caller falls back to the exponential backoff."""
returns None so the caller falls back to the exponential backoff.
"""
if not value:
return None
try:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
colorlog==6.10.1
homeassistant==2026.4.3
pip>=25.0
ruff==0.15.9
ruff==0.15.22

# Copy from manifest.json to get this into the dev container
# without needing to start HA
Expand Down
Loading