Skip to content

Commit 7ca1fe3

Browse files
committed
Revert _get_all_devices() changes
1 parent 6b7d60d commit 7ca1fe3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

plugwise/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ def _temperature_uri(self, loc_id):
758758
return f"{LOCATIONS};id={loc_id}/thermostat;id={thermostat_functionality_id}"
759759

760760
def _group_switches(self):
761-
"""Helper-function for smile.py: _get_all_devices().
761+
"""Helper-function for smile.py: get_all_devices().
762762
Collect switching- or pump-group info.
763763
"""
764764
switch_groups = {}

plugwise/smile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ async def update_gw_devices(self):
235235
self._update_helper(data, dev_dict, dev_id, "switches", key)
236236

237237
def _all_device_data(self):
238-
"""Helper-function for _get_all_devices().
238+
"""Helper-function for get_all_devices().
239239
Collect initial data for each device and add to self.gw_devices.
240240
"""
241241
dev_id_list = []
@@ -262,7 +262,7 @@ def _all_device_data(self):
262262

263263
self.gw_devices = dict(zip(dev_id_list, dev_and_data_list))
264264

265-
def _get_all_devices(self):
265+
def get_all_devices(self):
266266
"""Determine the devices present from the obtained XML-data."""
267267
self._devices = {}
268268
self._scan_thermostats()

tests/test_smile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ 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)
@@ -1770,7 +1770,7 @@ async def test_connect_stretch_v31(self):
17701770
_LOGGER.info(" # Assert no master thermostat")
17711771
assert smile.single_master_thermostat() is None # it's not a thermostat :)
17721772

1773-
smile._get_all_devices()
1773+
smile.get_all_devices()
17741774
await self.device_test(smile, testdata)
17751775

17761776
await smile.close_connection()
@@ -1820,7 +1820,7 @@ async def test_connect_stretch_v23(self):
18201820
)
18211821
assert switch_change
18221822

1823-
smile._get_all_devices()
1823+
smile.get_all_devices()
18241824
await self.device_test(smile, testdata)
18251825

18261826
await smile.close_connection()

0 commit comments

Comments
 (0)