Repository navigation
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 = Falseon ablank value was dead code:
PoolSyncSensorinheritsCoordinatorEntityfirst,and its
availablereturns onlylast_update_success, so the assignment nevertook 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.jsongainszip_releaseandfilename. Without these, HACS downloadsGitHub's source snapshot, which is not a release asset and therefore not counted.
New
.github/workflows/release.ymlruns on a version tag and:manifest.json'sversion,poolsync_custom.zipfrom the contents ofcustom_components/poolsync_custom/,manifest.jsonis not at the archive root, or acustom_components//poolsync_custom/wrapper is present,The layout requirement is the part that's easy to get wrong. HACS extracts
with
zipfile.extractall(config/custom_components/poolsync_custom), so theintegration files must sit at the archive root. The commonly-copied advice to zip
a
poolsync_custom/folder producescustom_components/poolsync_custom/poolsync_custom/...and breaks the install.Verified locally: 22 files,
manifest.jsonat the root, no wrapper directories,translations included.
Release process documented in the README: bump
manifest.json, land onmain,git tag 2.1.0 && git push origin 2.1.0. A manual fallback is included.Breaking-ish notes for the release body
sensor.*_fault_codebecame*_active_faultswith decoded names (shipped in feat: decode faults by name, expose HP/LP input, explain no-flow temperatures #33).*_high_low_pressure(HP10).zip_releasecaveat: releases published before the asset existed can nolonger 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)reading stays unknown without a reason