Skip to content

Commit

Permalink
Flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsaxon committed Feb 2, 2020
1 parent 1a75140 commit fcde901
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions pysonofflanr3/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ def update_service(self, zeroconf, type, name):
asyncio.run_coroutine_threadsafe(
self.event_handler(None), self.loop)


except Exception as ex:
self.logger.error(
"Error updating service for device %s: %s, %s",
Expand Down Expand Up @@ -331,10 +330,6 @@ def send_switch(self, request: Union[str, Dict]):
format(ex), response, response.content
)

finally:

return

def send_signal_strength(self):

return self.send(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def test_cli_wrong_key(self):
runner = CliRunner()
result = runner.invoke(
cli.cli,
["--device_id", "PlugEncryptMock3", "--api_key", "badkey", "state"],
["--device_id", "PlugEncryptMock3", "--api_key", "bad", "state"],
)

print(result.output)
Expand Down

0 comments on commit fcde901

Please sign in to comment.