From 1893702f6a305761902c415a6b0e80ba1b7b0843 Mon Sep 17 00:00:00 2001 From: Smooth Date: Thu, 25 Jul 2024 17:42:46 +0200 Subject: [PATCH] Update pylgnetcast.py Fix for LG TVs pre 2012. Without it cant get the session id --- pylgnetcast/pylgnetcast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylgnetcast/pylgnetcast.py b/pylgnetcast/pylgnetcast.py index a3c9da9..62b7aee 100644 --- a/pylgnetcast/pylgnetcast.py +++ b/pylgnetcast/pylgnetcast.py @@ -261,7 +261,7 @@ def _display_pair_key(self): def _send_to_tv(self, message_type, message=None, payload=None): """Send message of given type to the tv.""" - if message_type != "command" and self.protocol == LG_PROTOCOL.HDCP: + if message_type == "command" and self.protocol == LG_PROTOCOL.HDCP: message_type = "dtv_wifirc" url = "%s%s" % (self.url, message_type) if message: