Skip to content

Commit 4e48f14

Browse files
committed
Fixes rebase issues
1 parent 4ae7f2a commit 4e48f14

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

plugwise/helper.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,6 @@ def _get_locations(self) -> None:
264264
f"./location[@id='{loc.loc_id}']"
265265
)
266266

267-
if counter == 0:
268-
raise KeyError(
269-
"Error, location Home (building) not found!"
270-
) # pragma: no cover
271-
272267
removed = list(set(self._existing_locations) - set(self._new_locations))
273268
if self._existing_locations and removed:
274269
for location_id in removed:
@@ -277,6 +272,11 @@ def _get_locations(self) -> None:
277272
self._existing_locations = self._new_locations
278273
self._new_locations = []
279274

275+
if counter == 0:
276+
raise KeyError(
277+
"Error, location Home (building) not found!"
278+
) # pragma: no cover
279+
280280
def _appliance_info_finder(self, appl: Munch, appliance: etree.Element) -> Munch:
281281
"""Collect info for all appliances found."""
282282
match appl.pwclass:

plugwise/smile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ def get_all_gateway_entities(self) -> None:
114114
self._get_appliances_with_offset_functionality()
115115
)
116116

117+
self._scan_thermostats()
117118
self._get_groups()
118119
self._all_entity_data()
119120

0 commit comments

Comments
 (0)