Skip to content

Commit 57b106a

Browse files
committed
Change protected name
1 parent cd0740a commit 57b106a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugwise/helper.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -382,12 +382,12 @@ def _locations_specials(self, loc: Munch, location: str) -> Munch:
382382
Correct location info in special cases.
383383
"""
384384
if loc.name == "Home":
385-
self._home_location = loc.id
385+
self._home_location = loc.loc_id
386386

387387
# Replace location-name for P1 legacy, can contain privacy-related info
388388
if self._smile_legacy and self.smile_type == "power":
389389
loc.name = "Home"
390-
self._home_location = loc.id
390+
self._home_location = loc.loc_id
391391

392392
return loc
393393

@@ -403,7 +403,7 @@ def _all_locations(self) -> None:
403403

404404
for location in locations:
405405
loc.name = location.find("name").text
406-
loc.id = location.attrib["id"]
406+
loc.loc_id = location.attrib["id"]
407407
# Filter the valid single location for P1 legacy: services not empty
408408
locator = "./services"
409409
if (
@@ -416,7 +416,7 @@ def _all_locations(self) -> None:
416416
# Specials
417417
loc = self._locations_specials(loc, location)
418418

419-
self._loc_data[loc.id] = {"name": loc.name}
419+
self._loc_data[loc.loc_id] = {"name": loc.name}
420420

421421
return
422422

0 commit comments

Comments
 (0)