Skip to content

chore(release): 2.1.0 with HACS zip assets and unknown-no-flow water temperature - #34

Merged
ccpk1 merged 1 commit into
mainfrom
ccpk1/2.1
Nov 8, 2026
Merged

ccpk1 merged 1 commit into
mainfrom
ccpk1/2.1

Conversation

@ccpk1

@ccpk1 ccpk1 commented Nov 8, 2026

Copy link
Copy Markdown
Owner

Summary

Prepares 2.1.0: water temperature without flow renders as unknown with a
reason, and releases now ship the HACS zip asset so installs are countable and
use the intended distribution artifact.

Water temperature: unknown, with a reason

Previously a no-flow reading made the entity vanish. It now renders as unknown
and carries unavailable_reason: no_flow.

While making this change I found that the existing _attr_available = False on a
blank value was dead code: PoolSyncSensor inherits CoordinatorEntity first,
and its available returns only last_update_success, so the assignment never
took effect. Removing it is a no-op, not a behaviour change — availability still
comes from the coordinator, which is what keeps the entity visible for the
"unknown + reason" presentation.

HACS distribution

hacs.json gains zip_release and filename. Without these, HACS downloads
GitHub's source snapshot, which is not a release asset and therefore not counted.

New .github/workflows/release.yml runs on a version tag and:

  1. fails if the tag does not match manifest.json's version,
  2. builds poolsync_custom.zip from the contents of
    custom_components/poolsync_custom/,
  3. fails if manifest.json is not at the archive root, or a
    custom_components/ / poolsync_custom/ wrapper is present,
  4. creates the release and attaches the asset.

The layout requirement is the part that's easy to get wrong. HACS extracts
with zipfile.extractall(config/custom_components/poolsync_custom), so the
integration files must sit at the archive root. The commonly-copied advice to zip
a poolsync_custom/ folder produces
custom_components/poolsync_custom/poolsync_custom/... and breaks the install.
Verified locally: 22 files, manifest.json at the root, no wrapper directories,
translations included.

Release process documented in the README: bump manifest.json, land on main,
git tag 2.1.0 && git push origin 2.1.0. A manual fallback is included.

Breaking-ish notes for the release body

  • No entity IDs, unique IDs or config schema change.
  • sensor.*_fault_code became *_active_faults with decoded names (shipped in feat: decode faults by name, expose HP/LP input, explain no-flow temperatures #33).
  • Water temperature is unknown without flow.
  • New diagnostic entities: *_high_low_pressure (HP10).
  • zip_release caveat: releases published before the asset existed can no
    longer be installed through HACS. Users should be on 2.1.0 or later.

Verification

  • ./utils/quick_lint.sh — clean
  • ./utils/run_tests.sh — 456 passed (was 453)
  • New tests: no-flow renders unknown with the reason; a genuinely missing probe
    reading stays unknown without a reason

…erature

Bump to 2.1.0 and make releases installable and countable through HACS.

Water temperature without flow now renders as unknown and carries
`unavailable_reason: no_flow`, instead of the entity disappearing. Removing the
`_attr_available = False` on a blank value is a no-op rather than a behaviour
change: PoolSyncSensor inherits CoordinatorEntity first, whose `available`
returns only `last_update_success`, so that assignment never had any effect.
Availability continues to be driven by the coordinator, which keeps the entity
visible and lets "unknown" plus the reason do the explaining.

HACS distribution:
- hacs.json gains zip_release + filename, which is what makes HACS download the
  release asset instead of GitHub's source snapshot; asset downloads are the
  ones GitHub counts.
- .github/workflows/release.yml builds poolsync_custom.zip on a version tag,
  verifies the tag matches manifest.json, verifies the archive layout, and
  attaches the asset to the release.

The archive layout matters and is easy to get wrong: HACS extracts the asset with
zipfile.extractall() into config/custom_components/poolsync_custom, so the zip
must contain the integration files at its root. A custom_components/ or
poolsync_custom/ wrapper nests them one level too deep and breaks the install, so
the workflow fails the build rather than shipping it.

Verified by building the archive locally: 22 files, manifest.json at the root, no
wrapper directories, translations included.
@ccpk1 ccpk1 self-assigned this Nov 8, 2026
@ccpk1 ccpk1 added the documentation Improvements or additions to documentation label Nov 8, 2026
@ccpk1
ccpk1 merged commit af938a3 into main Nov 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant