@@ -299,6 +299,12 @@ def test_nuos_split_properties_sync_async_and_missing_state_defaults(self):
299299
300300 device .set_water_heater_boost (False )
301301 device .set_water_heater_temperature (60 )
302+ # The getter must reflect the requested target immediately, without
303+ # waiting for the next cloud refresh (regression: setter used to write
304+ # procReqTemp while the getter reads comfortTemp).
305+ self .assertEqual (device .water_heater_target_temperature , 60 )
306+ self .assertEqual (device .data [NuosSplitProperties .COMFORT_TEMP ], 60 )
307+ self .assertNotIn (NuosSplitProperties .PROC_REQ_TEMP , device .data )
302308 device .set_water_heater_reduced_temperature (42 )
303309 device .set_water_heater_operation_mode ("FAST" )
304310 # The getter must reflect the requested mode immediately (regression:
@@ -308,10 +314,10 @@ def test_nuos_split_properties_sync_async_and_missing_state_defaults(self):
308314 device .set_min_setpoint_temp (35 )
309315 device .set_preheating (True )
310316 device .set_heating_rate (5 )
311- self .assertEqual (device .data [NuosSplitProperties .PROC_REQ_TEMP ], 43 )
317+ self .assertEqual (device .data [NuosSplitProperties .COMFORT_TEMP ], 43 )
312318 self .assertEqual (device .data [NuosSplitProperties .REDUCED_TEMP ], 42 )
313319 self .assertEqual (device .data [NuosSplitProperties .OP_MODE ], NuosSplitOperativeMode .FAST .value )
314- device .api .set_nuos_temperature .assert_called_with ("gw-1" , 43 , 42 , 55 , 40 )
320+ device .api .set_nuos_temperature .assert_called_with ("gw-1" , 43 , 42 , 60 , 40 )
315321 device .api .set_velis_plant_setting .assert_called ()
316322
317323 device .api .async_set_nous_boost = AsyncMock ()
@@ -322,6 +328,9 @@ def test_nuos_split_properties_sync_async_and_missing_state_defaults(self):
322328 async def set_values ():
323329 await device .async_set_water_heater_boost (True )
324330 await device .async_set_water_heater_temperature (62 )
331+ self .assertEqual (device .water_heater_target_temperature , 62 )
332+ self .assertEqual (device .data [NuosSplitProperties .COMFORT_TEMP ], 62 )
333+ self .assertNotIn (NuosSplitProperties .PROC_REQ_TEMP , device .data )
325334 await device .async_set_water_heater_reduced_temperature (39 )
326335 await device .async_set_water_heater_operation_mode ("GREEN" )
327336 await device .async_set_min_setpoint_temp (36 )
0 commit comments