[magentatv] Deprecations (#20871)

* [magentatv] Deprecations

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
Holger Friedrich
2026-06-19 15:47:23 +02:00
committed by GitHub
parent a13e2c6b69
commit 21e9a13c56
@@ -18,6 +18,7 @@ import static org.openhab.binding.magentatv.internal.MagentaTVUtil.*;
import java.io.IOException; import java.io.IOException;
import java.net.DatagramPacket; import java.net.DatagramPacket;
import java.net.InetAddress; import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.MulticastSocket; import java.net.MulticastSocket;
import java.net.NetworkInterface; import java.net.NetworkInterface;
@@ -83,7 +84,7 @@ public class MagentaTVPoweroffListener extends Thread {
// Join the Multicast group on the selected network interface // Join the Multicast group on the selected network interface
socket.setNetworkInterface(networkInterface); socket.setNetworkInterface(networkInterface);
InetAddress group = InetAddress.getByName(UPNP_MULTICAST_ADDRESS); InetAddress group = InetAddress.getByName(UPNP_MULTICAST_ADDRESS);
socket.joinGroup(group); socket.joinGroup(new InetSocketAddress(group, UPNP_PORT), networkInterface);
// read the SSDP messages // read the SSDP messages
while (!socket.isClosed()) { while (!socket.isClosed()) {