fix: make the integration pass hassfest and add the hassfest check #2

Merged
tim merged 2 commits from fix/hassfest into main 2026-10-12 12:29:14 +00:00
Owner

Follow-up to #1, found by running Home Assistant's own validator (hassfest) against this repository.

Findings

  • Error: homeassistant is not a valid key in manifest.json. It was in the original manifest (2024.3.0) and I re-set it to 2026.10.0 in #1. The minimum Home Assistant version belongs in hacs.json, which already has 2026.10.0.
  • Warning: the integration implements async_setup but has no CONFIG_SCHEMA. It is configured through config entries only, so cv.config_entry_only_config_schema(DOMAIN) is the standard declaration. No behaviour change.
  • Dead links: documentation, issue_tracker, the pyproject.toml project URLs and the README issue link pointed at github.com/timstoop/smart-forecast-solar, which does not exist (404). They now point at this repository.

Commits

  1. fix: the manifest key, CONFIG_SCHEMA, and the links.
  2. ci: .forgejo/workflows/hassfest.yml using the shared hassfest action from workflow-basics (PRs, main, weekly).

Merge order

The workflow uses workflow-basics/hassfest@main, which exists once tim/workflow-basics!5 is merged. Until then this check fails with "action not found".

Verified

  • hassfest: Invalid integrations: 0, no warnings.
  • 225 tests, ruff check, ruff format --check and bandit -ll pass on Python 3.14.8.

Claude-Session: https://claude.ai/code/session_013jL41LP9srdcUDYggNpC98

🤖 Generated with Claude Code

Follow-up to #1, found by running Home Assistant's own validator (hassfest) against this repository. ## Findings - **Error**: `homeassistant` is not a valid key in `manifest.json`. It was in the original manifest (`2024.3.0`) and I re-set it to `2026.10.0` in #1. The minimum Home Assistant version belongs in `hacs.json`, which already has `2026.10.0`. - **Warning**: the integration implements `async_setup` but has no `CONFIG_SCHEMA`. It is configured through config entries only, so `cv.config_entry_only_config_schema(DOMAIN)` is the standard declaration. No behaviour change. - **Dead links**: `documentation`, `issue_tracker`, the `pyproject.toml` project URLs and the README issue link pointed at `github.com/timstoop/smart-forecast-solar`, which does not exist (404). They now point at this repository. ## Commits 1. **fix**: the manifest key, `CONFIG_SCHEMA`, and the links. 2. **ci**: `.forgejo/workflows/hassfest.yml` using the shared `hassfest` action from workflow-basics (PRs, main, weekly). ## Merge order The workflow uses `workflow-basics/hassfest@main`, which exists once tim/workflow-basics!5 is merged. Until then this check fails with "action not found". ## Verified - hassfest: `Invalid integrations: 0`, no warnings. - 225 tests, `ruff check`, `ruff format --check` and `bandit -ll` pass on Python 3.14.8. Claude-Session: https://claude.ai/code/session_013jL41LP9srdcUDYggNpC98 🤖 Generated with [Claude Code](https://claude.com/claude-code)
hassfest (Home Assistant's own validator) found:

- manifest.json: "homeassistant" is not a valid key. The minimum
  version belongs in hacs.json, which already has it (2026.10.0)
- the integration implements async_setup but defines no CONFIG_SCHEMA;
  it is configured through config entries only, so use
  cv.config_entry_only_config_schema(DOMAIN)

The repository links in manifest.json, pyproject.toml and the README
pointed at github.com/timstoop/smart-forecast-solar, which does not
exist (404). They now point at this repository on Forgejo.

225 tests pass; hassfest reports no errors or warnings.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013jL41LP9srdcUDYggNpC98
ci: validate the integration with hassfest
All checks were successful
CI / Lint and test (pull_request) Successful in 1m40s
Hassfest / Validate integration (pull_request) Successful in 1m30s
Security / Security scan (pull_request) Successful in 13s
9f3937d1ea
Runs the shared hassfest action from workflow-basics on PRs, main and
weekly (it follows Home Assistant, which changes every month).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013jL41LP9srdcUDYggNpC98
tim merged commit abf354681c into main 2026-10-12 12:29:14 +00:00
tim deleted branch fix/hassfest 2026-10-12 12:29:14 +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
tim/hass-smart-forecast-solar!2
No description provided.