From eec53b827ef980d4159768f86e86b1678d892ba6 Mon Sep 17 00:00:00 2001 From: Emmanuel Levijarvi Date: Mon, 24 Nov 2025 18:04:41 -0800 Subject: [PATCH] fix: use snake_case attribute names in device_status_callback example Changed currentDhwFlowRate to current_dhw_flow_rate and temperatureType to temperature_type to match the DeviceStatus model's snake_case naming convention. --- examples/device_status_callback.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/device_status_callback.py b/examples/device_status_callback.py index 2e426f7..4afed31 100755 --- a/examples/device_status_callback.py +++ b/examples/device_status_callback.py @@ -178,9 +178,9 @@ def on_device_status(status: DeviceStatus): f" Super Heat: {status.current_super_heat:.1f}°F" ) print( - f" Flow Rate: {status.currentDhwFlowRate:.1f} GPM" + f" Flow Rate: {status.current_dhw_flow_rate:.1f} GPM" ) - print(f" Temperature Unit: {status.temperatureType.name}") + print(f" Temperature Unit: {status.temperature_type.name}") print("=" * 60)