Skip to content

Commit dbb0037

Browse files
committed
Functional stakick progress, version bump a5
1 parent 5ed3d48 commit dbb0037

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

airos/airos8.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import json
66
import logging
7-
from urllib.parse import quote, urlparse
7+
from urllib.parse import urlparse
88

99
import aiohttp
1010

@@ -232,10 +232,7 @@ async def stakick(self, mac_address: str = None) -> bool:
232232
if self.current_csrf_token:
233233
kick_request_headers["X-CSRF-ID"] = self.current_csrf_token
234234

235-
kick_payload = {
236-
"staif": "ath0",
237-
"staid": quote(mac_address.upper(), safe=""),
238-
}
235+
kick_payload = {"staif": "ath0", "staid": mac_address.upper()}
239236
logger.error(kick_payload)
240237

241238
kick_request_headers["Content-Type"] = (
@@ -252,7 +249,7 @@ async def stakick(self, mac_address: str = None) -> bool:
252249
if response.status == 200:
253250
return True
254251
response_text = await response.text()
255-
log = f"Unable to restart connection response status {response.status} with {response_text} called with payload {post_data} with headers {kick_request_headers} and url {self._stakick_cgi_url}"
252+
log = f"Unable to restart connection response status {response.status} with {response_text}"
256253
logger.error(log)
257254
return False
258255
except (

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "airos"
7-
version = "0.0.10a4"
7+
version = "0.0.10a5"
88
license = "MIT"
99
description = "Ubiquity airOS module(s) for Python 3."
1010
readme = "README.md"

0 commit comments

Comments
 (0)