Skip to content

Commit c419ac7

Browse files
authoredNov 3, 2024··
Fix pylint complaints (#480)
1 parent 1a16125 commit c419ac7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎pyhap/accessory.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def xhm_uri(self) -> str:
207207
int(self.driver.state.pincode.replace(b"-", b""), 10) & 0x7FFFFFFF
208208
) # pincode
209209

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

213213
return "X-HM://" + encoded_payload + self.driver.state.setup_id

‎pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ disable = [
7777
"too-many-return-statements",
7878
"too-many-statements",
7979
"too-many-boolean-expressions",
80+
"too-many-positional-arguments",
8081
"unused-argument",
8182
"wrong-import-order",
8283
"unused-argument",

0 commit comments

Comments
 (0)
Please sign in to comment.