Skip to content

Commit

Permalink
Fix pylint complaints (#480)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Nov 3, 2024
1 parent 1a16125 commit c419ac7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyhap/accessory.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def xhm_uri(self) -> str:
int(self.driver.state.pincode.replace(b"-", b""), 10) & 0x7FFFFFFF
) # pincode

encoded_payload = base36.dumps(payload).upper()
encoded_payload = base36.dumps(payload).upper() # pylint: disable=possibly-used-before-assignment
encoded_payload = encoded_payload.rjust(9, "0")

return "X-HM://" + encoded_payload + self.driver.state.setup_id
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ disable = [
"too-many-return-statements",
"too-many-statements",
"too-many-boolean-expressions",
"too-many-positional-arguments",
"unused-argument",
"wrong-import-order",
"unused-argument",
Expand Down

0 comments on commit c419ac7

Please sign in to comment.