22Changelog
33=========
44
5- Version 6.2 .0 (2025-12-17)
5+ Version 7.0 .0 (2025-12-17)
66==========================
77
8- **BREAKING CHANGES **: Enumerations refactored for type safety and consistency
8+ **BREAKING CHANGES **:
9+ - Minimum Python version raised to 3.13
10+ - Enumerations refactored for type safety and consistency
11+
12+ Removed
13+ -------
14+ - **Python 3.9-3.12 Support **: Minimum Python version is now 3.13
15+
16+ Home Assistant has deprecated Python 3.12 support, making Python 3.13 the de facto minimum for this ecosystem.
17+
18+ Python 3.13 features and improvements:
19+
20+ - **Experimental free-threaded mode ** (PEP 703): Optional GIL removal for true parallelism
21+ - **JIT compiler ** (PEP 744): Just-in-time compilation for performance improvements
22+ - **Better error messages **: Enhanced suggestions for NameError, AttributeError, and import errors
23+ - **Type system enhancements **: TypeVars with defaults (PEP 696), @deprecated decorator (PEP 702), ReadOnly TypedDict (PEP 705)
24+ - **Performance **: ~5-10% faster overall, optimized dictionary/set operations, better function calls
25+ - PEP 695: New type parameter syntax for generics
26+ - PEP 701: f-string improvements
27+ - Built-in ``datetime.UTC `` constant
28+
29+ If you need Python 3.12 support, use version 6.1.x of this library.
930
1031- **CommandCode moved **: Import from ``nwp500.enums `` instead of ``nwp500.constants ``
1132
@@ -22,6 +43,13 @@ Version 6.2.0 (2025-12-17)
2243 Added
2344-----
2445
46+ - **Python 3.12+ Optimizations **: Leverage latest Python features
47+
48+ - PEP 695: New type parameter syntax (``def func[T](...) `` instead of ``TypeVar ``)
49+ - Use ``datetime.UTC `` constant instead of ``datetime.timezone.utc ``
50+ - Native union syntax (``X | Y `` instead of ``Union[X, Y] ``)
51+ - Cleaner generic type annotations throughout codebase
52+
2553- **Enumerations Module (``src/nwp500/enums.py``) **: Comprehensive type-safe enums for device control and status
2654
2755 - Status value enums: ``OnOffFlag ``, ``Operation ``, ``DhwOperationSetting ``, ``CurrentOperationMode ``, ``HeatSource ``, ``DREvent ``, ``WaterLevel ``, ``FilterChange ``, ``RecirculationMode ``
0 commit comments