Skip to content

Rest refactor - #8

Merged
nolsen311 merged 7 commits into
mainfrom
REST-refactor
Sep 6, 2026
Merged

nolsen311 merged 7 commits into
mainfrom
REST-refactor

Conversation

@nolsen311

Copy link
Copy Markdown
Owner

v0.10.1

Documentation and CI only — no runtime change.

  • CLAUDE.md: record live-hardware pfRest findings (GUI-disabled rules
    read back as enabled; blank statetype rejects a rule PATCH; the
    firewall/states prefix-delete filter behaviour).
  • Add a release-drafter config so the Release Drafter workflow stops failing.
  • README: note the fork origin / de-fork; fix broken badge URLs.
  • manifest.json: point Documentation and Issues links at this repo.

nolsen311 and others added 6 commits September 6, 2026 11:38
Adds a "Findings from live hardware" section capturing behaviour learned
running the shipped integration against the Netgate 6100:

- pfRest reports `disabled: false` for rules disabled in the pfSense GUI
  (strict `=== ''` against pfSense's empty-element form) -- why the rule
  switches looked backwards, and why there is no client-side fix.
- `PATCH /firewall/rule` 400s with FIELD_EMPTY_NOT_ALLOWED on a blank
  `statetype`; the client backfills "keep state".
- `DELETE /api/v2/firewall/states` -- the `source/destination__startswith`
  prefix filter works, `limit=0` deletes all matches with no per-call cap;
  resolves the earlier LIVE-CHECK.
- Aside on the HACS version-regression trap.

Cross-references added in the rule-switch and state-table sections; the
stale "no integration code has been rewritten yet" note is corrected.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The Release Drafter workflow was failing because release-drafter@v7
looks for .github/release-drafter.yml and, not finding it here or in
nolsen311/.github, 404s. Add a standard label-driven config
(breaking-change / feature / bug / maintenance categories, semver
version-resolver).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Records that the project began as a fork of DonTranQuiL/Pfsense-pro,
was extensively rewritten (XML-RPC -> native async REST API v2) with
Claude Cowork, and was de-forked so PRs aren't accidentally opened
against upstream.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- README badges pointed at the old repo name and a non-existent
  pytest.yml workflow: repoint to nolsen311/Pfsense-REST and to the
  actual workflows (hass-ci.yml, hassfest.yaml, hacs.yaml), pinned to
  the main branch.
- manifest.json documentation / issue_tracker URLs -> Pfsense-REST, so
  the "Documentation" and "Issues" links on the HA integration page
  resolve.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Docs and CI-config only since 0.10.0: live-hardware pfRest findings in
CLAUDE.md, a release-drafter config, the README fork-origin note, and
fixed README badges / manifest documentation+issue_tracker URLs. No
runtime change.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown

🎉 Thank you for contributing to SkyRadar Fusion! Your Pull Request has been received. Our automated tests (Hassfest, Ruff, etc.) will run shortly. If anything fails, don't worry—just check the logs and update your branch!

- test_setup_and_unload_entry: recent HA requires a coordinator to carry
  its `config_entry` for `async_config_entry_first_refresh()`, and that
  call is only valid in SETUP_IN_PROGRESS state. Pass `config_entry=entry`
  to both DataUpdateCoordinator constructions, and drive the test through
  `hass.config_entries.async_setup` / `async_unload` instead of calling
  `async_setup_entry` directly.
- test_carp_sensor_on: the CARP Status binary sensor -- the integration's
  only one -- was `entity_registry_enabled_default=False`, so it never
  reached the state machine. Enable it by default; it reads harmlessly as
  off when CARP is not configured.

Local `test_pypfsense.py` failures are an aioresponses/aiohttp version
mismatch on this machine only; those pass in CI.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@nolsen311
nolsen311 merged commit 13cf913 into main Sep 6, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant