diff --git a/setup.py b/setup.py index 823f6a1..45a99b9 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="tplinkrouterc6u", - version="3.4.2", + version="3.4.3", author="Alex Erohin", author_email="alexanderErohin@yandex.ru", description="TP-Link Router API", diff --git a/tplinkrouterc6u/client.py b/tplinkrouterc6u/client.py index eb67e02..b086142 100644 --- a/tplinkrouterc6u/client.py +++ b/tplinkrouterc6u/client.py @@ -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) @@ -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'))