From 4b80bd8e07a7b7ec317f5d664aee1bd5d7ae773f Mon Sep 17 00:00:00 2001 From: PSc-secunet <92575786+PSc-secunet@users.noreply.github.com> Date: Wed, 8 Mar 2023 12:33:44 +0100 Subject: anelpwr.py: fix POST URL (#120) Co-authored-by: Peter Schumann --- kvmd/plugins/ugpio/anelpwr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kvmd/plugins/ugpio') diff --git a/kvmd/plugins/ugpio/anelpwr.py b/kvmd/plugins/ugpio/anelpwr.py index e07321df..0b8b6bc3 100644 --- a/kvmd/plugins/ugpio/anelpwr.py +++ b/kvmd/plugins/ugpio/anelpwr.py @@ -140,7 +140,7 @@ class Plugin(BaseUserGpioDriver): # pylint: disable=too-many-instance-attribute session = self.__ensure_http_session() try: async with session.post( - url=f"{self.__url}//ctrl.htm", + url=f"{self.__url}/ctrl.htm", data=f"F{pin}={int(state)}", headers={"Content-Type": "text/plain"}, ) as response: -- cgit v1.2.3