Skip to content

Commit 153af33

Browse files
committed
Fix unix timestamp for image validation
not tested yet
1 parent 53e8700 commit 153af33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugwise_usb/messages/responses.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,10 +400,10 @@ class NodeImageValidationResponse(PlugwiseResponse):
400400
Response to request : NodeImageValidationRequest
401401
"""
402402

403-
def __init__(self) -> None:
403+
def __init__(self, timestamp: datetime | None = None) -> None:
404404
"""Initialize NodeImageValidationResponse message object."""
405405
super().__init__(b"0010")
406-
self.image_timestamp = UnixTimestamp(0)
406+
self.image_timestamp = UnixTimestamp(timestamp)
407407
self._params += [self.image_timestamp]
408408

409409

0 commit comments

Comments
 (0)