Skip to content

Commit

Permalink
fix: black formatting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaDodds committed Jan 19, 2025
1 parent 9e9c4a6 commit 8a7ac61
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dbus-serialbattery/bms/sns01_485.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ def probe(self, ser, cid1=b"\x42", cid2=b"\x47"):

return result


def get_serial(self, ser):
"""
Read serial from device by calling the get_mfg_params command,
Expand All @@ -190,7 +189,7 @@ def get_serial(self, ser):
if response:
logger.debug(f"response was: {response}")
payload_start = 13 + 12 # Header + command info
payload = response[payload_start: len(response) - 5]
payload = response[payload_start : len(response) - 5]
logger.debug(f"Raw Payload: {payload}")

if len(payload) >= 30:
Expand Down

0 comments on commit 8a7ac61

Please sign in to comment.