Skip to content

Add Hotspring sensor platform - #179697

Draft
Moustachauve wants to merge 2 commits into
home-assistant:devfrom
Moustachauve:hotspring-sensor
Draft

Add Hotspring sensor platform#179697
Moustachauve wants to merge 2 commits into
home-assistant:devfrom
Moustachauve:hotspring-sensor

Conversation

@Moustachauve

@Moustachauve Moustachauve commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Proposed change

This adds the initial set of sensor platform to the Hotspring integration:

  • Current temperature
  • Salt cartridge age
  • Salt value
  • Salt 10-day check timer
  • Control box version
  • Wi-Fi dongle version
  • FreshWater Salt System version

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Deprecation (breaking change to happen in the future)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

Checklist

  • I understand the code I am submitting and can explain how it works.
  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • I have followed the perfect PR recommendations
  • The code has been formatted using Ruff (ruff format homeassistant tests)
  • Tests have been added to verify that the new code works.
  • Any generated code has been carefully reviewed for correctness and compliance with project standards.

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • The manifest file has all fields filled out correctly.
    Updated and included derived files by running: python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt.
    Updated by running python3 -m script.gen_requirements_all.
  • For the updated dependencies a diff between library versions and ideally a link to the changelog/release notes is added to the PR description.

To help with the load of incoming pull requests:

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a sensor platform to expose Hot Spring spa temperatures, salt-system data, and firmware versions.

Changes:

  • Registers seven coordinator-backed sensor entities.
  • Adds entity translations.
  • Adds fixtures, behavioral tests, and snapshots.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
homeassistant/components/hotspring/__init__.py Registers the sensor platform.
homeassistant/components/hotspring/sensor.py Implements sensor entities and descriptions.
homeassistant/components/hotspring/strings.json Adds sensor names.
tests/components/hotspring/conftest.py Adds water-care fixture data.
tests/components/hotspring/test_sensor.py Tests sensor creation and filtering.
tests/components/hotspring/snapshots/test_sensor.ambr Captures sensor states and registry metadata.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread homeassistant/components/hotspring/__init__.py
Comment thread homeassistant/components/hotspring/sensor.py
"sensor.connectedspa_ddeeff_freshwater_salt_system_version",
],
)
async def test_disabled_by_default_sensors(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have to test the disabled internal feature. What you can do in the snapshot is the enable all entities and they run along in the snapshot test. :)

assert entry.disabled_by is er.RegistryEntryDisabler.INTEGRATION


async def test_no_salt_cartridge(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this test and the test below are thorough, yet it feels like testing an internal. It's HA Core's job to not add them. If there's a specific code path you want to test, for coverage, in your integration, we should write a test for that only. :)

@home-assistant
home-assistant Bot marked this pull request as draft August 21, 2026 06:05
@home-assistant

Copy link
Copy Markdown
Contributor

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants