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 3c3db5e commit 1449013
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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.2.0",
version="1.2.1",
author="Alex Erohin",
author_email="[email protected]",
description="TP-Link Router API",
Expand Down
2 changes: 1 addition & 1 deletion tplinkrouterc6u/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def clear(self) -> None:

def _get_firmware(self) -> Firmware:
data = self._get_data('admin/firmware?form=upgrade')
firmware = Firmware(data['hardware_version'], data['model'], data['firmware_version'])
firmware = Firmware(data.get('hardware_version', ''), data.get('model', ''), data.get('firmware_version', ''))

return firmware

Expand Down

0 comments on commit 1449013

Please sign in to comment.