Skip to content

Commit d9e9fa0

Browse files
committed
Revert "Implement in power_data_from_location() and related"
This reverts commit 4a7ba33.
1 parent cfd9f3b commit d9e9fa0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugwise/helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,7 @@ def _power_data_peak_value(self, direct_data: DeviceData, loc: Munch) -> Munch:
11631163
)
11641164

11651165
# Locator not found
1166-
if _find(loc.logs, loc.locator) is None:
1166+
if loc.logs.find(loc.locator) is None:
11671167
loc.found = False
11681168
return loc
11691169

@@ -1196,7 +1196,7 @@ def _power_data_from_location(self, loc_id: str) -> DeviceData:
11961196
if self._smile_legacy:
11971197
t_string = "tariff_indicator"
11981198

1199-
loc.logs = _find(search, f'./location[@id="{loc_id}"]/logs')
1199+
loc.logs = search.find(f'./location[@id="{loc_id}"]/logs')
12001200
# meter_string = ".//{}[type='{}']/"
12011201
for loc.measurement, loc.attrs in P1_MEASUREMENTS.items():
12021202
for loc.log_type in log_list:

0 commit comments

Comments
 (0)