Skip to content

Commit

Permalink
deleted test_connection
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandrErohin committed Dec 14, 2023
1 parent 5fce011 commit 3c3db5e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="tplinkrouterc6u",
version="1.1.0",
version="1.2.0",
author="Alex Erohin",
author_email="[email protected]",
description="TP-Link Router API",
Expand Down
9 changes: 0 additions & 9 deletions tplinkrouterc6u/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,6 @@ def __init__(self, host: str, password: str, username: str = 'admin', logger: Lo

self._encryption = EncryptionWrapper()

def test_connect(self) -> bool:
try:
return self.authorize()
except Exception as error:
if self._logger:
self._logger.error('TplinkRouter Integration Exception - {}'.format(error))
finally:
self.clear()

def get_firmware(self) -> Firmware | None:
return self._request(self._get_firmware)

Expand Down

0 comments on commit 3c3db5e

Please sign in to comment.