@@ -374,15 +374,11 @@ def show_setup(location_list, device_list):
374374 assert False
375375
376376 @pytest .mark .asyncio
377- async def device_test (self , smile = pw_smile .Smile , testdata = None , preset = False ):
377+ async def device_test (self , smile = pw_smile .Smile , testdata = None ):
378378 """Perform basic device tests."""
379379 _LOGGER .info ("Asserting testdata:" )
380380 bsw_list = ["binary_sensors" , "central" , "climate" , "sensors" , "switches" ]
381381 smile .get_all_devices ()
382- # Preset smile.cooling_active for testing of a state-change
383- smile .cooling_active = False
384- if preset :
385- smile .cooling_active = True
386382 data = await smile .async_update ()
387383 extra = data [0 ]
388384 device_list = data [1 ]
@@ -2200,7 +2196,7 @@ async def test_connect_anna_heatpump_cooling(self):
22002196 _LOGGER .info (" # Assert no legacy" )
22012197 assert not smile ._smile_legacy
22022198
2203- await self .device_test (smile , testdata , True )
2199+ await self .device_test (smile , testdata )
22042200 assert self .cooling_present
22052201 assert not self .notifications
22062202
@@ -2342,7 +2338,7 @@ async def test_connect_anna_elga_2(self):
23422338 _LOGGER .info (" # Assert no legacy" )
23432339 assert not smile ._smile_legacy
23442340
2345- await self .device_test (smile , testdata , True )
2341+ await self .device_test (smile , testdata )
23462342 assert self .cooling_present
23472343 assert not self .notifications
23482344
@@ -2371,7 +2367,7 @@ async def test_connect_adam_plus_anna_copy_with_error_domain_added(self):
23712367 _LOGGER .info (" # Assert legacy" )
23722368 assert not smile ._smile_legacy
23732369
2374- await self .device_test (smile , testdata , True )
2370+ await self .device_test (smile , testdata )
23752371
23762372 assert "3d28a20e17cb47dca210a132463721d5" in self .notifications
23772373
0 commit comments