Skip to content

Commit cd4340a

Browse files
committed
Fix time command
1 parent b974742 commit cd4340a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom_components/pylontech_serial/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,5 +152,5 @@ def parse_time(raw_text: str, system: PylontechSystem) -> PylontechSystem:
152152
def generate_time_command(timestamp: datetime) -> str:
153153
"""Generates the 'time' command for specific datetime."""
154154
# time [year] [month] [day] [hour] [minute] [second]
155-
# Example: time 2025 12 21 13 00 00
156-
return timestamp.strftime("time %Y %m %d %H %M %S")
155+
# Example: time 25 12 21 13 00 00
156+
return timestamp.strftime("time %y %m %d %H %M %S")

0 commit comments

Comments
 (0)