Skip to content

Commit 837a202

Browse files
committed
Fix walrus
1 parent 234431d commit 837a202

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugwise_usb/nodes/helpers/pulses.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ def collected_logs(self) -> int:
109109
@property
110110
def hourly_reset_time(self) -> datetime | None:
111111
"""Provide the device hourly pulse reset time."""
112-
if timestamp := self.cons_last_hourly_reset is not None:
112+
if (timestamp := self.cons_last_hourly_reset) is not None:
113113
return timestamp
114-
if timestamp := self.prod_last_hourly_reset is not None:
114+
if (timestamp := self.prod_last_hourly_reset) is not None:
115115
return timestamp
116116
return None
117117

0 commit comments

Comments
 (0)