Skip to content

Commit

Permalink
linter fixes: tag a false-positive bandit warning and add a newline
Browse files Browse the repository at this point in the history
  • Loading branch information
benleb committed Sep 15, 2021
1 parent b5a396f commit 1d2675e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion surepy/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
from .exceptions import SurePetcareAuthenticationError, SurePetcareConnectionError, SurePetcareError


TOKEN_ENV = "SUREPY_TOKEN"
TOKEN_ENV = "SUREPY_TOKEN" # nosec
TOKEN_FILE = Path("~/.surepy.token").expanduser()

# get a logger
Expand Down Expand Up @@ -353,6 +353,7 @@ async def unlock(self, device_id: int) -> dict[str, Any] | None:
async def _set_lock_state(self, device_id: int, mode: LockState) -> dict[str, Any] | None:
"""Retrieve the flap data/state."""
resource = CONTROL_RESOURCE.format(BASE_RESOURCE=BASE_RESOURCE, device_id=device_id)

data = {"locking": int(mode.value)}

if (
Expand Down

0 comments on commit 1d2675e

Please sign in to comment.