Skip to content

Commit b468973

Browse files
committed
Private function and parameter updates - 5
1 parent 203d627 commit b468973

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

tests/test_smile.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -405,13 +405,13 @@ async def device_test(self, smile=pw_smile.Smile, testdata=None):
405405
"thermostatic_radiator_valve",
406406
]
407407
bsw_lists = ["binary_sensors", "sensors", "switches"]
408-
smile.get_all_devices()
408+
smile._get_all_devices()
409409
await smile.update_gw_devices()
410410
device_list = smile.gw_devices
411411
self._write_json("all_devices", device_list)
412-
self._write_json("notifications", smile.notifications)
412+
self._write_json("notifications", smile._notifications)
413413

414-
location_list = smile.thermo_locs
414+
location_list = smile._thermo_locs
415415

416416
_LOGGER.info("Gateway id = %s", smile.gateway_id)
417417
_LOGGER.info("Hostname = %s", smile.smile_hostname)
@@ -648,7 +648,7 @@ async def test_connect_legacy_anna(self):
648648
assert not smile.notifications
649649

650650
await self.device_test(smile, testdata)
651-
assert smile.active_device_present
651+
assert smile._active_device_present
652652

653653
await self.tinker_thermostat(
654654
smile,
@@ -712,7 +712,7 @@ async def test_connect_legacy_anna_2(self):
712712
assert not smile.notifications
713713

714714
await self.device_test(smile, testdata)
715-
assert smile.active_device_present
715+
assert smile._active_device_present
716716

717717
await self.tinker_thermostat(
718718
smile,
@@ -866,7 +866,7 @@ async def test_connect_anna_v4(self):
866866
assert not smile.notifications
867867

868868
await self.device_test(smile, testdata)
869-
assert smile.active_device_present
869+
assert smile._active_device_present
870870

871871
await self.tinker_thermostat(
872872
smile,
@@ -962,7 +962,7 @@ async def test_connect_anna_without_boiler_fw3(self):
962962
assert not smile.notifications
963963

964964
await self.device_test(smile, testdata)
965-
assert not smile.active_device_present
965+
assert not smile._active_device_present
966966

967967
await self.tinker_thermostat(
968968
smile, "c34c6864216446528e95d88985e714cc", good_schemas=["Test", "Normal"]
@@ -1021,7 +1021,7 @@ async def test_connect_anna_without_boiler_fw4(self):
10211021
assert not smile.notifications
10221022

10231023
await self.device_test(smile, testdata)
1024-
assert not smile.active_device_present
1024+
assert not smile._active_device_present
10251025

10261026
await self.tinker_thermostat(
10271027
smile, "c34c6864216446528e95d88985e714cc", good_schemas=["Test", "Normal"]
@@ -1095,7 +1095,7 @@ async def test_connect_adam_plus_anna(self):
10951095
assert not smile.notifications
10961096

10971097
await self.device_test(smile, testdata)
1098-
assert smile.active_device_present
1098+
assert smile._active_device_present
10991099

11001100
await self.tinker_thermostat(
11011101
smile, "009490cc2f674ce6b576863fbb64f867", good_schemas=["Weekschema"]
@@ -1154,7 +1154,7 @@ async def test_connect_adam_plus_anna_new(self):
11541154
assert not smile.single_master_thermostat()
11551155

11561156
await self.device_test(smile, testdata)
1157-
assert smile.active_device_present
1157+
assert smile._active_device_present
11581158

11591159
switch_change = await self.tinker_switch(
11601160
smile,
@@ -1328,7 +1328,7 @@ async def test_connect_adam_zone_per_device(self):
13281328
await smile.delete_notification()
13291329

13301330
await self.device_test(smile, testdata)
1331-
assert not smile.active_device_present
1331+
assert not smile._active_device_present
13321332

13331333
await self.tinker_thermostat(
13341334
smile, "c50f167537524366a5af7aa3942feb1e", good_schemas=["GF7 Woonkamer"]
@@ -1441,7 +1441,7 @@ async def test_connect_adam_multiple_devices_per_zone(self):
14411441
assert "af82e4ccf9c548528166d38e560662a4" in smile.notifications
14421442

14431443
await self.device_test(smile, testdata)
1444-
assert not smile.active_device_present
1444+
assert not smile._active_device_present
14451445

14461446
await self.tinker_thermostat(
14471447
smile, "c50f167537524366a5af7aa3942feb1e", good_schemas=["GF7 Woonkamer"]
@@ -1659,7 +1659,7 @@ async def test_connect_anna_heatpump(self):
16591659
assert not smile.notifications
16601660

16611661
await self.device_test(smile, testdata)
1662-
assert smile.active_device_present
1662+
assert smile._active_device_present
16631663

16641664
await smile.close_connection()
16651665
await self.disconnect(server, client)
@@ -1711,7 +1711,7 @@ async def test_connect_anna_heatpump_cooling(self):
17111711
assert not smile.notifications
17121712

17131713
await self.device_test(smile, testdata)
1714-
assert smile.active_device_present
1714+
assert smile._active_device_present
17151715

17161716
await smile.close_connection()
17171717
await self.disconnect(server, client)

0 commit comments

Comments
 (0)