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 c4f0e12 commit 0935a12Copy full SHA for 0935a12
plugwise/legacy/helper.py
@@ -127,9 +127,8 @@ def _all_locations(self) -> None:
127
"""Collect all locations."""
128
loc = Munch()
129
130
- locations = self._locations.findall("./location")
131
# Legacy Anna without outdoor_temp and Stretches have no locations, create fake location-data
132
- if not locations:
+ if not (locations := self._locations.findall("./location")):
133
self._home_location = FAKE_LOC
134
self._loc_data[FAKE_LOC] = {"name": "Home"}
135
return
0 commit comments