@@ -15,19 +15,36 @@ Added
1515 python3 -m nwp500.cli device-info
1616 python3 -m nwp500.cli device-info --raw
1717
18+ - **ConnectionStatus Enum **: New ``ConnectionStatus `` enum for device cloud connection state
19+
20+ - ``ConnectionStatus.DISCONNECTED `` = 1 - Device offline/not connected
21+ - ``ConnectionStatus.CONNECTED `` = 2 - Device online and reachable
22+ - Used in ``DeviceInfo.connected `` field with automatic validation
23+
1824- **InstallType Enum **: New ``InstallType `` enum for device installation classification
1925
2026 - ``InstallType.RESIDENTIAL `` = "R" - Residential use
2127 - ``InstallType.COMMERCIAL `` = "C" - Commercial use
2228 - Used in ``DeviceInfo.install_type `` field with automatic validation
29+ - Includes ``INSTALL_TYPE_TEXT `` mapping for display purposes
2330
2431- **String Enum Validator **: New ``str_enum_validator() `` converter for string-based enums
2532
2633Changed
2734-------
28- - **DeviceInfo Model **: ``install_type `` field now uses ``InstallType `` enum instead of plain string
35+ - **DeviceInfo Model **:
36+ - ``connected `` field now uses ``ConnectionStatus `` enum instead of plain int
37+ - ``install_type `` field now uses ``InstallType `` enum instead of plain string
38+
39+ - **TOU Status Conversion **: Simplified TOU status to use standard ``device_bool_to_python `` converter (consistent with other OnOffFlag fields)
40+ - Removed special-case ``tou_status_to_python() `` converter
41+ - ``TouStatus `` annotated type now uses ``device_bool_to_python `` validator
42+ - Device encoding: 1=OFF/disabled, 2=ON/enabled (consistent with all other boolean fields)
43+
2944- **CLI Documentation **: Clarified distinction between ``info `` (DeviceFeature via MQTT) and ``device-info `` (DeviceInfo via REST API) commands
3045
46+ - **Type Annotations **: Fixed CLI rich_output console type annotation to declare at class level
47+
3148Removed
3249-------
3350- **constants.py Module **: Removed empty ``constants.py `` module. ``CommandCode `` enum was already moved to ``enums.py `` in version 4.2.0.
@@ -42,6 +59,8 @@ Removed
4259
4360 - **Firmware Tracking **: Removed unused firmware tracking constants and documentation (``KNOWN_FIRMWARE_FIELD_CHANGES ``, ``LATEST_KNOWN_FIRMWARE ``, ``docs/protocol/firmware_tracking.rst ``)
4461
62+ - **TOU Status Converter **: Removed redundant ``tou_status_to_python() `` converter function and associated tests
63+
4564
4665Version 7.2.0 (2025-12-23)
4766==========================
0 commit comments