You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,32 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
8
+
## [2.7.0] - 2026-02-10
9
+
10
+
### Added
11
+
-**Long-Term Statistics Support**: Performance sensors now support Home Assistant's long-term statistics system ([#10](https://github.com/steynovich/ha-saxo-portfolio/issues/10))
12
+
- Changed `state_class` from `"total"` to `"measurement"` for all performance sensors
13
+
- Enables historical tracking beyond the default 10-day recorder retention period
14
+
- Supports trend visualization in History/Energy panels and statistical analysis
15
+
- Compatible with negative performance values (losses)
16
+
- Affects all 5 performance sensors:
17
+
-`SaxoInvestmentPerformanceSensor` (all-time)
18
+
-`SaxoYTDInvestmentPerformanceSensor`
19
+
-`SaxoMonthInvestmentPerformanceSensor`
20
+
-`SaxoQuarterInvestmentPerformanceSensor`
21
+
-`SaxoAccumulatedProfitLossSensor`
22
+
23
+
### Changed
24
+
-**Performance Sensor Configuration**: All performance sensors now use `state_class="measurement"` with `suggested_display_precision=2`
25
+
-**SaxoPerformanceSensorBase**: Added default `state_class` and display precision configuration
26
+
-**SaxoAccumulatedProfitLossSensor**: Changed from `state_class="total"` to `state_class="measurement"`
27
+
28
+
### Technical Details
29
+
- Updated `SaxoPerformanceSensorBase.__init__()` to set `state_class="measurement"` and `suggested_display_precision=2`
30
+
- Updated `SaxoAccumulatedProfitLossSensor.__init__()` to use `state_class="measurement"`
31
+
- Home Assistant `state_class="measurement"` allows both positive and negative values, suitable for investment performance tracking
32
+
- No breaking changes - existing functionality preserved, statistics tracking now enabled
33
+
8
34
## [2.6.0] - 2026-02-03
9
35
10
36
### Added
@@ -1260,6 +1286,7 @@ Condition #4 ensures reload only happens AFTER initial setup completes, when sen
1260
1286
- Modular data models for type safety and consistency
0 commit comments