Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
szclsya committed Jul 6, 2024
1 parent 083c3ed commit 4e2e02a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion switchbot/adv_parsers/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ def process_wolock(data: bytes | None, mfr_data: bytes | None) -> dict[str, bool
"night_latch": bool(mfr_data[9] & 0b00000001) if len(mfr_data) > 9 else False,
}

def process_wolock_pro(data: bytes | None, mfr_data: bytes | None) -> dict[str, bool | int]:

def process_wolock_pro(
data: bytes | None, mfr_data: bytes | None
) -> dict[str, bool | int]:
_LOGGER.debug("mfr_data: %s", mfr_data.hex())
if data:
_LOGGER.debug("data: %s", data.hex())
Expand Down

0 comments on commit 4e2e02a

Please sign in to comment.