Skip to content

feat: v3.14.15-beta.9 - Edit custom config, one entry per modem, TG3442DE restart, two hardware confirmations - #235

Merged
kwschulz merged 25 commits into
mainfrom
feature/v3.14.15-beta.9
Nov 20, 2026
Merged

kwschulz merged 25 commits into
mainfrom
feature/v3.14.15-beta.9

Conversation

@kwschulz

Copy link
Copy Markdown
Collaborator

The ninth beta of the v3.14.15 line: a custom config can be edited after setup, a modem can be added only once, the Arris TG3442DE gets a Restart button, and two entries are confirmed on hardware.

What is in it

Behaviour changes to know about

  • Setup stops with "This modem is already configured" when an entry for that address exists. Entries already set up are not affected.
  • The SB8200 Form Login CBN entry needs the address without http://; over HTTP the modem answers with its login page.

Verification

  • make validate-ci exited 0 on 889a78c8, run by Claude; release.py ran it again before the bump.
  • CI on 889a78c8: five workflows green, all 12 Tests jobs, including the new run on a pinned current Home Assistant (2026.11.2). That run first crashed at startup on the bump commit when the respx pytest plugin loaded before Home Assistant; 889a78c8 turns that plugin off, as pytest-homeassistant documents.
  • CodeQL alert 150 is fixed by c92e10ba; alert 151 was dismissed as a false positive (CoordinatorEntity is a base class of two sensor bases).
  • Not verified on hardware: the TG3442DE restart and the CGA6444VF 20 s timeout.

🤖 Generated with Claude Code

kwschulz and others added 25 commits November 15, 2026 19:28
A modem added with custom config now shows its modem.yaml on its
Configure screen. Each submit tests the config against the modem and
saves it only when the test passes; a failure logs the custom config
report and saves nothing. Ordinary entries keep the old form.

Also:
- CONFIG_FLOW_SPEC: Configure list matches the screen (no "full
  reconfiguration"); custom entries noted under "Thin entry".
- TROUBLESHOOTING and both READMEs link the custom config guide.
- Tests close coroutines a mocked hass never runs, clearing the
  "never awaited" warnings.

Related to #231

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Verified by @blAkeOrfake on 3.14.15-beta.7 hardware (HW 1.0,
SW CGA437ATCH1-TCH4-23.2-REL-50-RQ, 16 days uptime, 25 DS + 5 US
locked, all signals nominal).

Adds modem.verified.json from their diagnostics; flips modem.yaml
status awaiting_verification -> confirmed. Restart not yet reported
on hardware.

Related to #227

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
HA's logger integration makes setLevel a no-op on loggers named under
`logger: logs:`, so a failed custom config test lost every debug line
from its report, including the login target. capture_attempt now sets
and restores levels through orig_setLevel, HA's own bypass, and lowers
any descendant logger that has a level of its own.

The soak analyzer had matched nothing since the typed-event logging
migration: patterns expected renamed messages and no timestamp allowed
a UTC offset, so a real log reported CLEAN. Every Core pattern is now
tested against log_event() output and the HA interval patterns against
_log_operational_summary(). Recovery windows are parsed; the unused
poll_start pattern is dropped. The report states only what the log can
show: no rates from an INFO log, no 0.0s for an unmeasured duration or
skipped TCP probe, NO DATA when nothing was recognized.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Verified by @mplawner on 3.14.15-beta.8 hardware (HW 3.0,
SW AC01.02.003_072823_8200.03.07.735.CT, uptime 2d 20h, 34 DS + 4 US
locked, all signals nominal).

Adds modem.verified.json from their diagnostics; flips modem.yaml
status awaiting_verification -> confirmed. Confirmed over HTTPS, which
protocol auto-detect picks for a bare IP; an explicit http:// gets the
login page back from the fun=1 getter.

Related to #231

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After Vodafone firmware 6.0.0L-R36-RT, /api/v1/sta_docsis_status was
reported answering in 11.3 s, past the 10 s default; a timeout reads as
Unreachable with no data. 20 s is the intake headroom rule applied to
that measurement. The committed HAR (19.3B80-3.5.13) shows 5.92 s.

Related to #120

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…WARNING

A modem that ends its session every 30 minutes logged a WARNING each
time, though the same poll logged in again and collected (#215: 48 a
day). HnapSessionExpired and JsonRpcSessionExpired drop to INFO.
SessionRetryFailed, which fires only when the same-poll retry fails and
counts toward the auth circuit breaker, rises to WARNING, the Failures
tier in ORCHESTRATION_SPEC. Its INFO dated from the typed-event
migration (269b601), which kept levels unchanged.

Addresses #215

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add the observed authenticated JSON restart request and fold its
captured script and request evidence into the TG3442DE fixture.
Regenerate the catalog audit to record captured restart coverage.

Related to #86

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Grades the integration against all 54 HA quality scale rules in
hassfest's quality_scale.yaml format, with evidence per rule. HA
grades only core integrations and hassfest skips the file outside
core, so this is a self-assessment.

scripts/generate_quality_scale_table.py renders per-tier progress
into a generated region of the GitHub README; a test in the
integration suite fails when the table is stale. The modem-intake
and ha-safe-deps-bump skills re-grade it, following the procedure
in the script's docstring.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reaches HA quality scale config-flow-test-coverage (Bronze): guard
aborts, state-helper branches and the options-flow cooloff now have
tests, and the happy-flow test asserts the created entry's unique_id.
Tests only; no runtime change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The modem-intake skill is checked in and run by AI-assisted
contributors; a catalog-only change never touches the graded
integration, so contributors should not be asked to re-grade it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
HA quality scale common-modules places the coordinator in
coordinator.py. The inline update closures in async_setup_entry
become CableModemDataCoordinator and CableModemHealthCoordinator,
and the seven per-poll helpers move with them unchanged. They keep
logging under the package logger, so log filters, the diagnostics
log buffer and analyze_logs.py see the same names as before.

test_poll_behavior.py drives four real polls through the entry's
coordinator and asserts all five per-poll jobs and the logger name.
It passes on the code before and after the move, and fails when any
one job is removed. common-modules stays todo until the base entity
lands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Completes HA quality scale common-modules (Bronze 19/20).
CableModemEntity builds the device link and sets has_entity_name
once for the data sensor, health sensor and button bases, replacing
three copies of the DeviceInfo block. It is a mixin listed after the
platform class, which already supplies Entity.

test_entity.py sets up the real platforms and pins the device link,
device name, entity IDs, has_entity_name and coordinator updates; it
passes on the code before and after the change. The logger
save-and-restore fixture moves to the shared conftest so real-setup
tests no longer leak the diagnostics log buffer into later tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Audit labels a composite on a synthetic base as synthetic; an
  assembled fixture takes its weakest part's label. TG3442DE now
  reads synthetic.
- MODEM_INTAKE_WORKFLOW: new "synthetic base with an observed
  action" form; follow-up captures pick their form from the existing
  fixture; Step 12 gives a commitlint-valid example and says to run
  make commit-lint after committing.
- TG3442DE notes and HAR log.comment credit the contributor; no
  entry is touched.
- scripts/setup.py enforces the requires-python ceiling, so a newer
  Python no longer resolves a newer Home Assistant line.
- LINTING.md states which Home Assistant mypy checks against, and
  that mypy reads mypy.ini.

Related to #234

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
HA's Bronze unique-config-entry rule requires one entry per device.
Setup now aborts with already_configured when an entry for the parsed
host exists, in addition to the entity-prefix unique_id check. No
hardware ID is readable across the catalog, so host is the key. The
local dev harness (CMM_LOCAL_DEV) skips the host check so a bench can
stack modems on the default IP. quality_scale.yaml marks the rule done.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
All five pins move together so local, pre-commit and CI lint agree.

| Package | Old    | New    | Action | Reason                                    |
|---------|--------|--------|--------|-------------------------------------------|
| ruff    | 0.17.5 | 0.17.6 | bumped | dev tooling; tests.yml, pre-commit,       |
|         |        |        |        | requirements-dev, root + Core pyproject   |

No HA-constrained runtime deps drifted. Quality scale re-graded:
tier map matches HA core's current ALL_RULES (20/10/21/3); no rule
status changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The options flow lets users change the data poll and health check
intervals, which HA's rule excludes. The interval is a documented user
remedy for fragile modem web servers (#117, TROUBLESHOOTING § Multiple
Home Assistant Instances, Netgear sign-outs), so it stays. Bronze is
19/20.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…host

HA's _async_abort_entries_match counts disabled entries, so disabling
a modem and adding it again still aborts outside the dev harness.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A composite fixture reads hybrid only when its creator says hybrid;
  any other composite takes its weakest part's label, reconstructed.
- CM2000 (sibling-model restart transplant) and SB6141 fw1070 (pages
  from two units) now read reconstructed instead of hybrid.
- MODEM_INTAKE_WORKFLOW states the rule and names the sibling
  transplant's label; the audit legend no longer says a restart in a
  non-captured fixture was written to match Core.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- CI's mypy job installs Home Assistant, so the adapter is checked
  against real HA types (2025.1.x on Python 3.12, the hacs.json
  minimum), the same as the local venv.
- mypy.ini drops the custom_components warn_return_any exemption and
  the homeassistant missing-import ignore; both existed only because
  CI had no HA.
- _hold_last is generic over the sensor's value type instead of Any.
- LINTING.md states that local and CI check the same HA.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
device_registry.async_get_device is deprecated from HA 2026.10 and
raises in tests there; async_entries_for_config_entry exists on the
2025.1 floor and on 2026.10. A trial run of the HA suite on Python
3.14 with HA 2026.10.4 found this as its only failure (1479 passed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The root suite also runs on Python 3.14 against
  tests/requirements-ha-latest.txt (homeassistant and
  pytest-homeassistant 2026.11.2), in CI and in make validate-ci.
  The pin moves only through ha-safe-deps-bump, stable releases only.
- pytest-homeassistant-custom-component ends at HA 2026.10.4, so the
  current run uses HA's own pytest-homeassistant; tests import its
  helpers through tests/ha_harness.py. Shared test deps move to
  tests/requirements-common.txt.
- make ha-latest-test fetches Python 3.14 with a private uv; HA
  2025.1.4 pins uv 0.5.8 in .venv, which predates 3.14.
- check_owned_deps scans the new files and never hides a bump to the
  current pin behind the floor HA's constraints.
- ADR: adapter tests run on the floor and on a pinned current Home
  Assistant.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Arris TG3442DE Restart button, and the Technicolor CGA437ATCH4 and
Arris SB8200 Form Login CBN entries confirmed on hardware. cspell learns
the contributor handle and "recognises".

Related to #234, #227, #231

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tton base

As the sensor bases do. No HA class before CableModemEntity in the MRO
defines __init__ today, so super() reached it; one that did would have
stopped buttons getting their device link. Clears CodeQL alert #150
(py/missing-call-to-init).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ents

HA 2026.11 installs an httpx alias when imported, and it fails if httpx
is already loaded. The respx plugin imports httpx, and pytest's plugin
load order is not fixed, so the current-HA run crashed at startup on
489586a after passing on c92e10b with the same packages. No test uses
the respx plugin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

ℹ️ Personal Email Detected in Commits

Note: This is an informational check only. It does not block your PR.

These commits were authored with a personal email address rather than
a GitHub noreply address:

  • 548089cb by Jan Hajek

The address is deliberately not repeated here, because this comment is
public. To see it: git log --format='%h %ae' -2

Why This Matters

Personal emails in git history are permanently public and can be harvested by spammers.

How to Fix (Optional but Recommended)

  1. Configure GitHub email privacy:

    • Go to GitHub Email Settings
    • Check "Keep my email addresses private"
    • Copy your noreply address (e.g., ID+username@users.noreply.github.com)
  2. For this repo, run the setup script:

    ./scripts/dev/setup-git-email.sh
  3. Or use VS Code task: "Setup Git Email Privacy"

For Future Commits

Once configured, all your future commits will use the privacy-safe email automatically.


This check helps protect contributor privacy. Feel free to merge if you're okay with the email being public.

@kwschulz
kwschulz merged commit 55e9b94 into main Nov 20, 2026
36 checks passed
@kwschulz
kwschulz deleted the feature/v3.14.15-beta.9 branch November 20, 2026 21:25
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.

2 participants