Skip to content

Commit

Permalink
- fixed lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
snjoetw committed Feb 15, 2020
1 parent 7089897 commit 8a0f029
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions august/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,7 @@ def send_verification_code(self, access_token, login_method, username):

return response

def validate_verification_code(
self, access_token, login_method, username, verification_code
):
def validate_verification_code(self, access_token, login_method, username, verification_code):
response = self._call_api(
"post",
API_VALIDATE_VERIFICATION_CODE_URLS[login_method],
Expand Down
4 changes: 2 additions & 2 deletions august/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ def __init__(self, data):
self._doorsense = False
if "LockStatus" in data:
if (
"doorState" in data["LockStatus"]
and data["LockStatus"]["doorState"] != "init"
"doorState" in data["LockStatus"]
and data["LockStatus"]["doorState"] != "init"
):
self._doorsense = True

Expand Down

0 comments on commit 8a0f029

Please sign in to comment.