From 8a0f029045be823ba415672d5804c5f2c0dc9be5 Mon Sep 17 00:00:00 2001 From: Joe Lu Date: Sat, 15 Feb 2020 05:37:37 -0800 Subject: [PATCH] - fixed lint error --- august/api.py | 4 +--- august/lock.py | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/august/api.py b/august/api.py index 48f0f46..89a6042 100644 --- a/august/api.py +++ b/august/api.py @@ -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], diff --git a/august/lock.py b/august/lock.py index 5720b06..1f78999 100644 --- a/august/lock.py +++ b/august/lock.py @@ -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