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 5b1acf4 commit 0fd6333Copy full SHA for 0fd6333
plugwise/helper.py
@@ -847,10 +847,10 @@ def _appliance_measurements(
847
updated_date_locator = (
848
f'.//logs/point_log[type="{measurement}"]/updated_date'
849
)
850
- if (
851
- updated_date_key := appliance.find(updated_date_locator)
852
- ) is not None:
853
- if measurement in OBSOLETE_MEASUREMENTS:
+ if measurement in OBSOLETE_MEASUREMENTS:
+ if (
+ updated_date_key := appliance.find(updated_date_locator)
+ ) is not None:
854
updated_date = updated_date_key.text.split("T")[0]
855
date_1 = dt.datetime.strptime(updated_date, "%Y-%m-%d")
856
date_2 = dt.datetime.now()
0 commit comments