Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsaxon committed Mar 8, 2020
1 parent 0bb7a04 commit d9d4074
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pysonofflanr3/client.py
Expand Up @@ -71,9 +71,7 @@ def set_retries(self, retry_count):
status_forcelist=None,
)

self.http_session.mount(
"http://", HTTPAdapter(max_retries=retries)
)
self.http_session.mount("http://", HTTPAdapter(max_retries=retries))

def __init__(
self,
Expand Down Expand Up @@ -242,7 +240,9 @@ def update_service(self, zeroconf, type, name):
if info.properties.get(b"encrypt"):

if self.api_key == "" or self.api_key is None:
self.logger.error("Missing api_key for encrypted device: %s", name)
self.logger.error(
"Missing api_key for encrypted device: %s", name
)
data = None

else:
Expand Down Expand Up @@ -307,7 +307,7 @@ def retry_connection(self):
self.logger.debug(
"Sending retry message for %s" % self.device_id
)

# in retry connection, we autoamtically retry 3 times
self.set_retries(3)
self.send_signal_strength()
Expand Down

0 comments on commit d9d4074

Please sign in to comment.