From edd766f36faa388fbb4e6ff4330b09036720d54c Mon Sep 17 00:00:00 2001 From: Christian Birchinger Date: Mon, 8 Jul 2024 21:34:00 +0200 Subject: [PATCH] Remove ip_address from send_magic_packet Without ip_address the wakeonlan magic packet will be sent to the default 255.255.255.255 (boardcast). This is required because during standby, the devices will not have their IP up and running. --- LGTV/remote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LGTV/remote.py b/LGTV/remote.py index 3f6a429..6cc141c 100644 --- a/LGTV/remote.py +++ b/LGTV/remote.py @@ -182,7 +182,7 @@ def __get_youtube_id_from_url(self, url_string): def on(self): if not (self.__macAddress) and not (self.__ip): print ("Client must have been powered on and paired before power on works") - send_magic_packet(self.__macAddress, ip_address=self.__ip) + send_magic_packet(self.__macAddress) def off(self): self.__send_command("request", "ssap://system/turnOff")