Skip to content

Commit

Permalink
Fix for C1200 v2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandrErohin committed Mar 23, 2024
1 parent 303d107 commit 87e8312
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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="3.4.2",
version="3.4.3",
author="Alex Erohin",
author_email="[email protected]",
description="TP-Link Router API",
Expand Down
4 changes: 2 additions & 2 deletions tplinkrouterc6u/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def __init__(self, host: str, password: str, username: str = 'admin', logger: Lo
super().__init__(host, password, username, logger, verify_ssl, timeout)

self._url_firmware = 'admin/firmware?form=upgrade&operation=read'
self._url_wireless_stats = 'admin/wireless?form=statistics&operation=read'
self._url_wireless_stats = 'admin/wireless?form=statistics'
self._url_ipv4_reservations = 'admin/dhcps?form=reservation&operation=load'
self._url_ipv4_dhcp_leases = 'admin/dhcps?form=client&operation=load'
referer = '{}/webpages/index.html'.format(self.host)
Expand Down Expand Up @@ -347,7 +347,7 @@ def _add_device(type: Wifi, item: dict) -> None:
type = self._map_wire_type(item.get('wire_type'), False)
_add_device(type, item)

for item in self.request(self._url_wireless_stats, 'operation=read'):
for item in self.request(self._url_wireless_stats, 'operation=load'):
if item['mac'] not in devices:
status.wifi_clients_total += 1
type = self._map_wire_type(item.get('type'))
Expand Down

0 comments on commit 87e8312

Please sign in to comment.