From 1d2675e8e948416a474b1c044a3f519c33d50313 Mon Sep 17 00:00:00 2001 From: Ben Lebherz Date: Wed, 15 Sep 2021 17:56:29 +0200 Subject: [PATCH] linter fixes: tag a false-positive bandit warning and add a newline --- surepy/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/surepy/client.py b/surepy/client.py index a791daa..b7b2c7e 100644 --- a/surepy/client.py +++ b/surepy/client.py @@ -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 @@ -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 (