mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
anelpwr.py: fix POST URL (#120)
Co-authored-by: Peter Schumann <peter.schumann@secunet.de>
This commit is contained in:
parent
97eb2e9f50
commit
4b80bd8e07
@ -140,7 +140,7 @@ class Plugin(BaseUserGpioDriver): # pylint: disable=too-many-instance-attribute
|
|||||||
session = self.__ensure_http_session()
|
session = self.__ensure_http_session()
|
||||||
try:
|
try:
|
||||||
async with session.post(
|
async with session.post(
|
||||||
url=f"{self.__url}//ctrl.htm",
|
url=f"{self.__url}/ctrl.htm",
|
||||||
data=f"F{pin}={int(state)}",
|
data=f"F{pin}={int(state)}",
|
||||||
headers={"Content-Type": "text/plain"},
|
headers={"Content-Type": "text/plain"},
|
||||||
) as response:
|
) as response:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user