Python-hotspring

Latest version: v4.0.2

Safety actively analyzes 1055497 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

4.0.2

What’s changed

🐛 Bug fixes

- Let connection errors from commands propagate unwrapped tmilnthorp (32)
- **Note:** Command methods now let `HotSpringConnectionError` and `HotSpringConnectionTimeoutError` propagate directly instead of wrapping them in `HotSpringCommandError`. Callers catching `HotSpringError` are unaffected, but callers catching only `HotSpringCommandError` should also catch `HotSpringConnectionError` (or the base `HotSpringError`).
- Raise HotSpringError for malformed response fields tmilnthorp (33)

🚀 Enhancements

- Name the HNA endpoints once in an Endpoint enum tmilnthorp (36)

🧰 Maintenance

- Auto-label pull requests and consolidate release labels Moustachauve (35)

4.0.1

What’s changed

🐛 Bug fixes

- Bound the response body read by request_timeout tmilnthorp (28)
- Send Connection: close on every request to the HNA tmilnthorp (29)

🚀 Enhancements

- Name the cause of connection errors and log each request attempt tmilnthorp (27)

4.0.0

What’s changed

🚨 Breaking changes

- Fix FreshWaterIQ installed detection and normalize sentinel readings Moustachauve (23)
- Normalize unavailable heating modes to HeatingMode.UNKNOWN Moustachauve (26)

📚 Documentation

- Add AGENTS.md and CONTRIBUTING.md with contributor and PR label guidelines Moustachauve (24)

⬆️ Dependency updates

- Remove unused awesomeversion and python-backoff dependencies Moustachauve (25)

3.1.0

⚠️ Breaking Changes

* Removed `is_hna` and `is_sna` properties on `Spa` and `SpaInfo` in favor of `DeviceType`.
* Moved `device_type` strictly to `spa.info.device_type`.

🚀 Enhancements & Bug Fixes

* Fix HNA incorrectly detected as an SNA when the SNA has a numerically higher MAC address than the HNA (21).
* Preserve HNA identification during temporary radio link drops by checking cached control box firmware version (21).
* Prevent non-critical `/startup` response errors from falsely triggering `HotSpringSNADetectedError` (21).

What’s Changed

* Refactor adapter role detection and remove redundant SNA properties Moustachauve (21)

3.0.1

What’s changed

🚀 Enhancements

- feat(client): allow float values for set_temperature to support Celsius half-degree steps Moustachauve (20)

3.0.0

Version `3.0.0` is a major release that significantly improves connection stability over the LoRA radio link, protects against device configuration errors, expands spa control capabilities, and modernizes collection data structures.

---

🚨 Breaking Changes & Migration Guide

- **Collections are now dictionaries keyed by hardware ID (`int`) instead of lists**:
- `Spa.jets`: now `dict[int, Jet]` (previously `list[Jet]`)
- `Spa.light_zones`: now `dict[int, LightZone]` (previously `list[LightZone]`)
- `Spa.energy_savings`: now `dict[int, EnergySavingSchedule]` (previously `list[...]`)

**Migration:**
python
Before (v2.x)
jet_1 = spa.jets[0]
for jet in spa.jets:
...

After (v3.0.0)
jet_1 = spa.jets[1] Direct access by hardware ID (1, 2, ...)
for jet in spa.jets.values(): Iterate values
...


---

🌟 Highlights & Key Improvements

1. **LoRA Link Stability & Dropout Prevention (19)**:
- Queries (`/status`, `/spaConnectStatus`) are now executed sequentially instead of in parallel via `asyncio.gather`, avoiding socket starvation and radio queue contention on the HNA's single-threaded web server.
- Removed aggressive backoff retry storms on routine polling (`request_retries=0` default). Polling failures now fail fast instead of locking up the radio for 30+ seconds.
- Added automatic fallback for `spa_connected` if `/spaConnectStatus` temporarily drops while `/status` succeeds.

2. **HNA vs. SNA Adapter Detection (18)**:
- Added automatic validation to ensure connections target the **Home Network Adapter (HNA)** rather than the **Spa Network Adapter (SNA)**. Connecting to an SNA will now raise a clear `HotSpringSNADetectedError`.

3. **Expanded Controls & Capabilities (13, 15)**:
- Added controls for spa locks (temperature lock, spa lock), clean cycle, and energy savings schedule configuration.
- Added jet speed types (single-speed, two-speed, blower), capabilities, and concurrent mode support.

4. **Telemetry, Diagnostics & Runtime Tracking (16)**:
- Added runtime hours tracking for the heater and individual jet pumps (with 16-bit hardware counter rollover handling).
- Added raw test point metrics (currents, voltages, sensor flow/limits, and board diagnostics).

---

What’s changed

- test: adopt syrupy snapshot testing for models and client Moustachauve (14)

🚨 Breaking changes

- refactor(models)!: store jets, light_zones, and energy_savings as dicts keyed by ID Moustachauve (17)

✨ New features

- feat(jets): expose jet capabilities, speed types, and runtime status Moustachauve (13)
- feat(controls): add switch, lock, and schedule controls Moustachauve (15)
- feat(models): add runtime tracking, fix counter overflow, and expand diagnostics Moustachauve (16)
- feat(client): detect HNA vs SNA and guard against connecting to SNA Moustachauve (18)

🐛 Bug fixes

- fix(client): serialize queries sequentially and prevent retry storms on LoRA link Moustachauve (19)

Page 1 of 3

© 2026 Safety CLI Cybersecurity Inc. All Rights Reserved.