@@ -643,7 +643,8 @@ async def test_connect_legacy_anna(self):
643643
644644 await self .device_test (smile , testdata )
645645 _LOGGER .info (" # Assert master thermostat" )
646- assert smile ._sm_thermostat # pylint: disable=protected-access
646+ assert smile ._is_thermostat # pylint: disable=protected-access
647+ assert not smile ._multi_thermostats # pylint: disable=protected-access
647648 assert self .active_device_present
648649 assert not self .notifications
649650
@@ -743,7 +744,8 @@ async def test_connect_legacy_anna_2(self):
743744
744745 await self .device_test (smile , testdata )
745746 _LOGGER .info (" # Assert master thermostat" )
746- assert smile ._sm_thermostat # pylint: disable=protected-access
747+ assert smile ._is_thermostat # pylint: disable=protected-access
748+ assert not smile ._multi_thermostats # pylint: disable=protected-access
747749 assert self .active_device_present
748750 assert not self .notifications
749751
@@ -815,7 +817,7 @@ async def test_connect_smile_p1_v2(self):
815817 await self .device_test (smile , testdata )
816818 _LOGGER .info (" # Assert no master thermostat" )
817819 # it's not a thermostat :)
818- assert smile ._sm_thermostat is None # pylint: disable=protected-access
820+ assert not smile ._is_thermostat # pylint: disable=protected-access
819821 assert not self .notifications
820822
821823 await smile .close_connection ()
@@ -853,7 +855,7 @@ async def test_connect_smile_p1_v2_2(self):
853855 await self .device_test (smile , testdata )
854856 _LOGGER .info (" # Assert no master thermostat" )
855857 # it's not a thermostat :)
856- assert smile ._sm_thermostat is None # pylint: disable=protected-access
858+ assert not smile ._is_thermostat # pylint: disable=protected-access
857859 assert not self .notifications
858860
859861 await smile .close_connection ()
@@ -934,7 +936,8 @@ async def test_connect_anna_v4(self):
934936
935937 await self .device_test (smile , testdata )
936938 _LOGGER .info (" # Assert master thermostat" )
937- assert smile ._sm_thermostat # pylint: disable=protected-access
939+ assert smile ._is_thermostat # pylint: disable=protected-access
940+ assert not smile ._multi_thermostats # pylint: disable=protected-access
938941 assert self .active_device_present
939942 assert not self .notifications
940943
@@ -979,7 +982,8 @@ async def test_connect_anna_v4_no_tag(self):
979982
980983 await self .device_test (smile , testdata )
981984 _LOGGER .info (" # Assert master thermostat" )
982- assert smile ._sm_thermostat # pylint: disable=protected-access
985+ assert smile ._is_thermostat # pylint: disable=protected-access
986+ assert not smile ._multi_thermostats # pylint: disable=protected-access
983987
984988 await self .tinker_thermostat (
985989 smile ,
@@ -1030,7 +1034,8 @@ async def test_connect_anna_without_boiler_fw3(self):
10301034
10311035 await self .device_test (smile , testdata )
10321036 _LOGGER .info (" # Assert master thermostat" )
1033- assert smile ._sm_thermostat # pylint: disable=protected-access
1037+ assert smile ._is_thermostat # pylint: disable=protected-access
1038+ assert not smile ._multi_thermostats # pylint: disable=protected-access
10341039 assert self .active_device_present
10351040 assert not self .notifications
10361041
@@ -1079,7 +1084,8 @@ async def test_connect_anna_without_boiler_fw4(self):
10791084
10801085 await self .device_test (smile , testdata )
10811086 _LOGGER .info (" # Assert master thermostat" )
1082- assert smile ._sm_thermostat # pylint: disable=protected-access
1087+ assert smile ._is_thermostat # pylint: disable=protected-access
1088+ assert not smile ._multi_thermostats # pylint: disable=protected-access
10831089 assert self .active_device_present
10841090 assert not self .notifications
10851091
@@ -1165,7 +1171,8 @@ async def test_connect_anna_without_boiler_fw42(self):
11651171
11661172 await self .device_test (smile , testdata )
11671173 _LOGGER .info (" # Assert master thermostat" )
1168- assert smile ._sm_thermostat # pylint: disable=protected-access
1174+ assert smile ._is_thermostat # pylint: disable=protected-access
1175+ assert not smile ._multi_thermostats # pylint: disable=protected-access
11691176 assert self .active_device_present
11701177 assert not self .notifications
11711178
@@ -1225,7 +1232,8 @@ async def test_connect_adam_plus_anna(self):
12251232
12261233 await self .device_test (smile , testdata )
12271234 _LOGGER .info (" # Assert master thermostat" )
1228- assert smile ._sm_thermostat # pylint: disable=protected-access
1235+ assert smile ._is_thermostat # pylint: disable=protected-access
1236+ assert not smile ._multi_thermostats # pylint: disable=protected-access
12291237 assert self .active_device_present
12301238 assert not self .notifications
12311239
@@ -1423,7 +1431,8 @@ async def test_connect_adam_plus_anna_new(self):
14231431
14241432 await self .device_test (smile , testdata )
14251433 _LOGGER .info (" # Assert master thermostat" )
1426- assert not smile ._sm_thermostat # pylint: disable=protected-access
1434+ assert smile ._is_thermostat # pylint: disable=protected-access
1435+ assert smile ._multi_thermostats # pylint: disable=protected-access
14271436 assert self .active_device_present
14281437
14291438 switch_change = await self .tinker_switch (
@@ -1569,7 +1578,8 @@ async def test_connect_adam_zone_per_device(self):
15691578
15701579 await self .device_test (smile , testdata )
15711580 _LOGGER .info (" # Assert master thermostat" )
1572- assert not smile ._sm_thermostat # pylint: disable=protected-access
1581+ assert smile ._is_thermostat # pylint: disable=protected-access
1582+ assert smile ._multi_thermostats # pylint: disable=protected-access
15731583 assert self .active_device_present
15741584
15751585 assert "af82e4ccf9c548528166d38e560662a4" in self .notifications
@@ -1973,7 +1983,8 @@ async def test_connect_adam_multiple_devices_per_zone(self):
19731983
19741984 await self .device_test (smile , testdata )
19751985 _LOGGER .info (" # Assert master thermostat" )
1976- assert not smile ._sm_thermostat # pylint: disable=protected-access
1986+ assert smile ._is_thermostat # pylint: disable=protected-access
1987+ assert smile ._multi_thermostats # pylint: disable=protected-access
19771988 assert self .active_device_present
19781989
19791990 assert "af82e4ccf9c548528166d38e560662a4" in self .notifications
@@ -2072,7 +2083,7 @@ async def test_connect_p1v3(self):
20722083
20732084 await self .device_test (smile , testdata )
20742085 # it's not a thermostat :)
2075- assert smile ._sm_thermostat is None # pylint: disable=protected-access
2086+ assert not smile ._is_thermostat # pylint: disable=protected-access
20762087 assert not self .cooling_present
20772088 assert not self .notifications
20782089
@@ -2109,7 +2120,7 @@ async def test_connect_p1v3solarfake(self):
21092120 await self .device_test (smile , testdata )
21102121 _LOGGER .info (" # Assert nomaster thermostat" )
21112122 # it's not a thermostat :)
2112- assert smile ._sm_thermostat is None # pylint: disable=protected-access
2123+ assert not smile ._is_thermostat # pylint: disable=protected-access
21132124 assert not self .notifications
21142125
21152126 await smile .close_connection ()
@@ -2163,7 +2174,7 @@ async def test_connect_p1v3_full_option(self):
21632174 await self .device_test (smile , testdata )
21642175 _LOGGER .info (" # Assert no master thermostat" )
21652176 # it's not a thermostat :)
2166- assert smile ._sm_thermostat is None # pylint: disable=protected-access
2177+ assert not smile ._is_thermostat # pylint: disable=protected-access
21672178 assert not self .notifications
21682179
21692180 await smile .close_connection ()
@@ -2216,7 +2227,8 @@ async def test_connect_anna_heatpump(self):
22162227 # Preset cooling_active to True, will turn to False due to the lowered outdoor temp
22172228 await self .device_test (smile , testdata , True )
22182229 _LOGGER .info (" # Assert master thermostat" )
2219- assert smile ._sm_thermostat # pylint: disable=protected-access
2230+ assert smile ._is_thermostat # pylint: disable=protected-access
2231+ assert not smile ._multi_thermostats # pylint: disable=protected-access
22202232 assert self .active_device_present
22212233 assert self .cooling_present
22222234 assert not self .notifications
@@ -2270,7 +2282,8 @@ async def test_connect_anna_heatpump_cooling(self):
22702282
22712283 await self .device_test (smile , testdata )
22722284 _LOGGER .info (" # Assert master thermostat" )
2273- assert smile ._sm_thermostat # pylint: disable=protected-access
2285+ assert smile ._is_thermostat # pylint: disable=protected-access
2286+ assert not smile ._multi_thermostats # pylint: disable=protected-access
22742287 assert self .active_device_present
22752288 assert self .cooling_present
22762289 assert not self .notifications
@@ -2302,7 +2315,8 @@ async def test_connect_adam_plus_anna_copy_with_error_domain_added(self):
23022315
23032316 await self .device_test (smile , testdata , True )
23042317 _LOGGER .info (" # Assert master thermostat" )
2305- assert smile ._sm_thermostat # pylint: disable=protected-access
2318+ assert smile ._is_thermostat # pylint: disable=protected-access
2319+ assert not smile ._multi_thermostats # pylint: disable=protected-access
23062320
23072321 assert "3d28a20e17cb47dca210a132463721d5" in self .notifications
23082322
@@ -2495,7 +2509,7 @@ async def test_connect_stretch_v31(self):
24952509 await self .device_test (smile , testdata )
24962510 _LOGGER .info (" # Assert no master thermostat" )
24972511 # it's not a thermostat :)
2498- assert smile ._sm_thermostat is None # pylint: disable=protected-access
2512+ assert not smile ._is_thermostat # pylint: disable=protected-access
24992513
25002514 await smile .close_connection ()
25012515 await self .disconnect (server , client )
@@ -2772,7 +2786,7 @@ async def test_connect_stretch_v23(self):
27722786 await self .device_test (smile , testdata )
27732787 _LOGGER .info (" # Assert no master thermostat" )
27742788 # it's not a thermostat :)
2775- assert smile ._sm_thermostat is None # pylint: disable=protected-access
2789+ assert not smile ._is_thermostat # pylint: disable=protected-access
27762790
27772791 switch_change = await self .tinker_switch (
27782792 smile , "2587a7fcdd7e482dab03fda256076b4b"
@@ -2821,7 +2835,7 @@ async def test_connect_stretch_v27_no_domain(self):
28212835 await self .device_test (smile , testdata )
28222836 _LOGGER .info (" # Assert no master thermostat" )
28232837 # it's not a thermostat :)
2824- assert smile ._sm_thermostat is None # pylint: disable=protected-access
2838+ assert not smile ._is_thermostat # pylint: disable=protected-access
28252839
28262840 switch_change = await self .tinker_switch (
28272841 smile , "8b8d14b242e24cd789743c828b9a2ea9"
@@ -2877,7 +2891,7 @@ async def test_connect_p1v4(self):
28772891 await self .device_test (smile , testdata )
28782892 _LOGGER .info (" # Assert no master thermostat" )
28792893 # it's not a thermostat :)
2880- assert smile ._sm_thermostat is None # pylint: disable=protected-access
2894+ assert not smile ._is_thermostat # pylint: disable=protected-access
28812895 assert not self .notifications
28822896
28832897 await smile .close_connection ()
0 commit comments