We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72fac4b commit b09eea4Copy full SHA for b09eea4
plugwise/helper.py
@@ -225,11 +225,14 @@ def _get_locations(self) -> None:
225
locations = self._domain_objects.findall("./location")
226
for location in locations:
227
loc.loc_id = location.attrib["id"]
228
+ loc.name = location.find("name").text
229
self._new_locations.append(loc.loc_id)
- if loc.loc_id in self._existing_locations:
230
+ if (
231
+ loc.loc_id in self._existing_locations
232
+ and self._loc_data[loc.loc_id]["name"] == loc.name
233
+ ):
234
continue
235
- loc.name = location.find("name").text
236
self._loc_data[loc.loc_id] = {
237
"name": loc.name,
238
"primary": [],
0 commit comments