ruff fixes

This commit is contained in:
Ian Renton
2026-09-18 18:38:35 +01:00
parent 40033d122e
commit 1a1743d11c
18 changed files with 34 additions and 21 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ class RBN(SpotProvider):
telnet_output = self._telnet.read_until("\n".encode("latin-1"))
match = self._LINE_PATTERN.match(telnet_output.decode("latin-1"))
if match:
spot_time = datetime.strptime(match.group(5), "%H%MZ")
spot_time = datetime.strptime(match.group(5), "%H%MZ").replace(tzinfo=pytz.UTC)
spot_datetime = datetime.combine(
datetime.now(pytz.UTC).date(),
spot_time.time(),