@@ -3929,14 +3929,15 @@ async def test_connect_anna_heatpump_cooling(self):
39293929 assert smile ._cooling_enabled
39303930 assert smile ._cooling_active
39313931
3932- with pytest .raises (pw_exceptions .PlugwiseError ):
3932+ with pytest .raises (pw_exceptions .PlugwiseError ) as exc :
39333933 await self .tinker_thermostat (
39343934 smile ,
39353935 "c784ee9fdab44e1395b8dee7d7a497d5" ,
39363936 good_schedules = [
39373937 "standaard" ,
39383938 ],
39393939 )
3940+ _LOGGER .debug ("ERROR raised: %s" , exc .value )
39403941
39413942 await smile .close_connection ()
39423943 await self .disconnect (server , client )
@@ -4377,21 +4378,23 @@ async def test_connect_anna_loria_heating_idle(self):
43774378 )
43784379 assert switch_change
43794380
4380- with pytest .raises (pw_exceptions .PlugwiseError ):
4381+ with pytest .raises (pw_exceptions .PlugwiseError ) as exc :
43814382 await self .tinker_thermostat (
43824383 smile ,
43834384 "15da035090b847e7a21f93e08c015ebc" ,
43844385 good_schedules = [
43854386 "Winter" ,
43864387 ],
43874388 )
4389+ _LOGGER .debug ("ERROR raised: %s" , exc .value )
43884390
4389- with pytest .raises (pw_exceptions .PlugwiseError ):
4391+ with pytest .raises (pw_exceptions .PlugwiseError ) as exc :
43904392 await self .tinker_thermostat_temp (
43914393 smile ,
43924394 "15da035090b847e7a21f93e08c015ebc" ,
43934395 special = False ,
43944396 )
4397+ _LOGGER .debug ("ERROR raised: %s" , exc .value )
43954398
43964399 await self .tinker_dhw_mode (smile )
43974400
0 commit comments