@@ -16,23 +16,23 @@ async def test_connect_stretch_v31(self):
1616 self .smile_setup = "stretch_v31"
1717
1818 testdata = await self .load_testdata (SMILE_TYPE , self .smile_setup )
19- server , smile , client = await self .connect_legacy_wrapper (stretch = True )
20- assert smile .smile .hostname == "stretch000000"
19+ server , api , client = await self .connect_legacy_wrapper (stretch = True )
20+ assert api .smile .hostname == "stretch000000"
2121
2222 self .validate_test_basics (
2323 _LOGGER ,
24- smile ,
24+ api ,
2525 smile_type = "stretch" ,
2626 smile_version = "3.1.11" ,
2727 smile_legacy = True ,
2828 )
2929
30- await self .device_test (smile , "2022-05-16 00:00:01" , testdata )
31- assert smile .gateway_id == "0000aaaa0000aaaa0000aaaa0000aa00"
30+ await self .device_test (api , "2022-05-16 00:00:01" , testdata )
31+ assert api .gateway_id == "0000aaaa0000aaaa0000aaaa0000aa00"
3232 assert self .entity_items == 83
3333
3434 switch_change = await self .tinker_switch (
35- smile ,
35+ api ,
3636 "059e4d03c7a34d278add5c7a4a781d19" ,
3737 )
3838 assert not switch_change
@@ -44,10 +44,10 @@ async def test_connect_stretch_v31(self):
4444 )
4545 self .smile_setup = "updated/stretch_v31"
4646 await self .device_test (
47- smile , "2022-05-16 00:00:01" , testdata_updated , initialize = False
47+ api , "2022-05-16 00:00:01" , testdata_updated , initialize = False
4848 )
4949
50- await smile .close_connection ()
50+ await api .close_connection ()
5151 await self .disconnect (server , client )
5252
5353 @pytest .mark .asyncio
@@ -56,36 +56,36 @@ async def test_connect_stretch_v23(self):
5656 self .smile_setup = "stretch_v23"
5757
5858 testdata = await self .load_testdata (SMILE_TYPE , self .smile_setup )
59- server , smile , client = await self .connect_legacy_wrapper (stretch = True )
60- assert smile .smile .hostname == "stretch000000"
59+ server , api , client = await self .connect_legacy_wrapper (stretch = True )
60+ assert api .smile .hostname == "stretch000000"
6161
6262 self .validate_test_basics (
6363 _LOGGER ,
64- smile ,
64+ api ,
6565 smile_type = "stretch" ,
6666 smile_version = "2.3.12" ,
6767 smile_legacy = True ,
6868 )
6969
70- await self .device_test (smile , "2022-05-16 00:00:01" , testdata )
70+ await self .device_test (api , "2022-05-16 00:00:01" , testdata )
7171 assert self .entity_items == 243
7272
7373 switch_change = await self .tinker_switch (
74- smile , "2587a7fcdd7e482dab03fda256076b4b"
74+ api , "2587a7fcdd7e482dab03fda256076b4b"
7575 )
7676 assert switch_change
7777 switch_change = await self .tinker_switch (
78- smile , "2587a7fcdd7e482dab03fda256076b4b" , model = "lock"
78+ api , "2587a7fcdd7e482dab03fda256076b4b" , model = "lock"
7979 )
8080 assert switch_change
8181 switch_change = await self .tinker_switch (
82- smile ,
82+ api ,
8383 "f7b145c8492f4dd7a4de760456fdef3e" ,
8484 ["407aa1c1099d463c9137a3a9eda787fd" ],
8585 )
8686 assert switch_change
8787
88- await smile .close_connection ()
88+ await api .close_connection ()
8989 await self .disconnect (server , client )
9090
9191 @pytest .mark .asyncio
@@ -95,25 +95,25 @@ async def test_connect_stretch_v27_no_domain(self):
9595 self .smile_setup = "stretch_v27_no_domain"
9696
9797 testdata = await self .load_testdata (SMILE_TYPE , self .smile_setup )
98- server , smile , client = await self .connect_legacy_wrapper (stretch = True )
99- assert smile .smile .hostname == "stretch000000"
98+ server , api , client = await self .connect_legacy_wrapper (stretch = True )
99+ assert api .smile .hostname == "stretch000000"
100100
101101 self .validate_test_basics (
102102 _LOGGER ,
103- smile ,
103+ api ,
104104 smile_type = "stretch" ,
105105 smile_version = "2.7.18" ,
106106 smile_legacy = True ,
107107 )
108108
109- await self .device_test (smile , "2022-05-16 00:00:01" , testdata )
109+ await self .device_test (api , "2022-05-16 00:00:01" , testdata )
110110 assert self .entity_items == 190
111111 _LOGGER .info (" # Assert no master thermostat" )
112112
113113 switch_change = await self .tinker_switch (
114- smile , "8b8d14b242e24cd789743c828b9a2ea9"
114+ api , "8b8d14b242e24cd789743c828b9a2ea9"
115115 )
116116 assert switch_change
117117
118- await smile .close_connection ()
118+ await api .close_connection ()
119119 await self .disconnect (server , client )
0 commit comments