File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments