Skip to content

Commit 5a3cbb4

Browse files
authored
Merge pull request #97 from githubDante/main
[Bugfix] TypeError when generating a time response frame.
2 parents ed07890 + 2e3d00e commit 5a3cbb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pysolarmanv5/pysolarmanv5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def _v5_time_response_frame(self, frame: bytes) -> bytearray:
348348
response_frame = self._v5_header(
349349
10, self._get_response_code(frame[4]), frame[5:7]
350350
) + bytearray(
351-
+struct.pack("<H", 0x0100) # Frame & sensor type?
351+
struct.pack("<H", 0x0100) # Frame & sensor type?
352352
+ struct.pack("<I", int(time.time()))
353353
+ struct.pack("<I", 0) # Offset?
354354
)

0 commit comments

Comments
 (0)