Skip to content

Commit c73f45c

Browse files
author
autoruff
committed
fixup: test_bouwew Python code reformatted using Ruff
1 parent f12691f commit c73f45c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/stick_test_data.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
pw_constants = importlib.import_module("plugwise_usb.constants")
77

88
# test using utc timezone - 2025-04-03 22:00:00
9-
utc_now = datetime(
10-
2025, 4, 3, 22, 0, 0
11-
) # datetime.now(tz=UTC).replace(tzinfo=UTC)
9+
utc_now = datetime(2025, 4, 3, 22, 0, 0) # datetime.now(tz=UTC).replace(tzinfo=UTC)
1210
# utc_now_offset = datetime.now(tz=UTC).replace(tzinfo=UTC) + timedelta(
1311
# days=1, hours=4, seconds=30
1412
# )
@@ -623,7 +621,9 @@
623621
+ b"1111111111111111" # mac
624622
+ bytes(("%%0%dX" % 2) % utc_now.hour, pw_constants.UTF8) # noqa: UP031
625623
+ bytes(("%%0%dX" % 2) % utc_now.minute, pw_constants.UTF8) # noqa: UP031
626-
+ bytes(("%%0%dX" % 2) % (utc_now + timedelta(seconds=10)).second, pw_constants.UTF8) # noqa: UP031
624+
+ bytes(
625+
("%%0%dX" % 2) % (utc_now + timedelta(seconds=10)).second, pw_constants.UTF8
626+
) # noqa: UP031
627627
+ bytes(("%%0%dX" % 2) % utc_now.weekday(), pw_constants.UTF8) # noqa: UP031
628628
+ b"00" # unknown
629629
+ b"0000", # unknown2

0 commit comments

Comments
 (0)