Skip to content

Commit 16fe8b0

Browse files
authored
Merge pull request #159 from SpanPanel/1_30
Handle httpx.RemoteProtocolError
2 parents 0d83530 + e46595e commit 16fe8b0

6 files changed

Lines changed: 42 additions & 43 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Install dependencies
2222
run: |
2323
# Replace path dependencies with PyPI versions for CI
24-
sed -i 's/span-panel-api = {path = "..\/span-panel-api", develop = true}/span-panel-api = "^1.1.13"/' pyproject.toml
24+
sed -i 's/span-panel-api = {path = "..\/span-panel-api", develop = true}/span-panel-api = "^1.1.14"/' pyproject.toml
2525
sed -i 's/ha-synthetic-sensors = {path = "..\/ha-synthetic-sensors", develop = true}/ha-synthetic-sensors = "^1.1.13"/' pyproject.toml
2626
# Regenerate lock file with the modified dependencies
2727
poetry lock

CHANGELOG.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,27 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
66
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.30] - 2025-12-31
9+
10+
### 🔄 Changed
11+
12+
- **Bump span-panel-api to v1.1.14**: Recognize panel Keep-Alive at 5 sec, Handle httpx.RemoteProtocolError defensively, Thanks to
13+
@NickBorgersOnLowSecurityNode.
14+
815
## [1.29] - 2025-12-25
916

1017
### ✨ New Features
1118

1219
- **Energy Spike Cleanup Service**: New `span_panel.cleanup_energy_spikes` service to detect and remove negative energy spikes from Home Assistant statistics
1320
caused by panel firmware updates. Includes dry-run mode for safe preview before deletion.
14-
- **Firmware Reset Detection (Beta)**: Monitoring of main meter energy sensor to detect errant (negative energy reports over time). Sends a persistent notification
15-
when detected, guiding users to adjust statistics if desired.
21+
- **Firmware Reset Detection (Beta)**: Monitoring of main meter energy sensor to detect errant (negative energy reports over time). Sends a persistent
22+
notification when detected, guiding users to adjust statistics if desired.
1623

1724
### 🔄 Changed
1825

1926
- **Removed Decreasing Energy Protection**: Reverted the TOTAL_INCREASING validation that was ignoring decreasing energy values that were thought to occur a
20-
limited number of updates but turned out to be permanent under-reporting of SPAN cloud data that manifested during firmware updates. The bug is on the SPAN
21-
side and can result in spikes in energy dashbaoards after firmware updates. See the Trouble-Shooting section of the README.md for more information.
27+
limited number of updates but turned out to be permanent under-reporting of SPAN cloud data that manifested during firmware updates. The bug is on the SPAN
28+
side and can result in spikes in energy dashbaoards after firmware updates. See the Trouble-Shooting section of the README.md for more information.
2229

2330
### 📝 Notes
2431

README.md

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,18 @@ monitoring and control of your home's electrical system.
1616

1717
This integration relies on the OpenAPI interface contract sourced from the SPAN Panel. The integration may break if SPAN changes the API in an incompatible way.
1818

19-
We cannot provide technical support for either SPAN or your home's electrical system. The software is provided as-is with no warranty or guarantee of
20-
performance or suitability to your particular setting.
19+
The software is provided as-is with no warranty or guarantee of performance or suitability to your particular setting.
2120

2221
This integration provides the user with sensors and controls that are useful in understanding an installation's power consumption, energy usage, and the ability
2322
to control user-manageable panel circuits.
2423

25-
## What's New
24+
## Major Upgrade
2625

27-
### Major Upgrade
26+
**Before upgrading to version 1.2.x from a prior version, please backup your Home Assistant configuration and database.**
2827

29-
**Before upgrading to version 1.2.x, please backup your Home Assistant configuration and database.** This version introduces significant architectural changes.
30-
While we've implemented migration logic to preserve your existing entities and automations, it's always recommended to have a backup before major upgrades.
28+
See the [CHANGELOG.md](CHANGELOG.md) for detailed information about all new features and improvements.
3129

32-
**OpenAPI Support**: The integration now uses the OpenAPI specification provided by the SPAN panel. This change provides a reliable foundation for future
33-
interface changes but some users have reported that newer panels might have closed off the interface (see trouble shooting). If and when SPAN provides
34-
additional support we may adapt.
35-
36-
**New Features**: This version introduces net energy calculations, simulation support, configurable timeouts, SSL support, circuit name sync, and flexible
37-
entity naming patterns. See the [CHANGELOG.md](CHANGELOG.md) for detailed information about all new features and improvements.
38-
39-
### HACS Upgrade Process
30+
## HACS Upgrade Process
4031

4132
When upgrading through HACS, you'll see a notification about the new version. Before clicking "Update":
4233

@@ -51,7 +42,7 @@ If you encounter any issues during the upgrade, you can:
5142
- Check the [troubleshooting section](#troubleshooting) below
5243
- Open an issue on GitHub with details about your installation
5344

54-
## Prerequisites
45+
### Prerequisites
5546

5647
- [Home Assistant](https://www.home-assistant.io/) installed
5748
- [HACS](https://hacs.xyz/) installed
@@ -324,6 +315,7 @@ Additional contributors:
324315

325316
- pavandave
326317
- sargonas
318+
- NickBorgersOnLowSecurityNode
327319

328320
## Issues
329321

custom_components/span_panel/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
"iot_class": "local_polling",
1313
"issue_tracker": "https://github.com/SpanPanel/span/issues",
1414
"requirements": [
15-
"span-panel-api~=1.1.13"
15+
"span-panel-api~=1.1.14"
1616
],
17-
"version": "1.2.9",
17+
"version": "1.3.0",
1818
"zeroconf": [
1919
{
2020
"type": "_span._tcp.local."

poetry.lock

Lines changed: 19 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ package-mode = false
1010

1111
[tool.poetry.dependencies]
1212
python = ">=3.13.2,<3.14"
13-
homeassistant = "2025.12.2,<2026.0.0" # Pin to exact version for custom component compatibility
13+
homeassistant = "2025.12.4,<2026.0.0" # Pin to exact version for custom component compatibility
1414
span-panel-api = {path = "../span-panel-api", develop = true}
1515

1616
[tool.poetry.group.dev.dependencies]
1717
# Type stubs and dev-only tools that don't conflict with HA runtime
18-
homeassistant-stubs = "2025.12.2"
18+
homeassistant-stubs = "2025.12.4"
1919
types-requests = "*"
2020
types-PyYAML = "*"
2121
mypy = "*"

0 commit comments

Comments
 (0)