From c057cd13fdb583886cbd272cb7605d463003a7f5 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 14 Aug 2020 02:01:31 +0200 Subject: [PATCH] python-zeroconf has introduced too many breaking changes - giving up. --- platypush/backend/__init__.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/platypush/backend/__init__.py b/platypush/backend/__init__.py index 68f00ffa..545ef3dd 100644 --- a/platypush/backend/__init__.py +++ b/platypush/backend/__init__.py @@ -347,8 +347,12 @@ class Backend(Thread, EventGenerator): else: srv_port = self.port if hasattr(self, 'port') else None - self.zeroconf_info = ServiceInfo(srv_type, srv_name, socket.inet_aton(self._get_ip()), - srv_port, 0, 0, srv_desc) + self.zeroconf_info = ServiceInfo(srv_type, srv_name, + addresses=[socket.inet_aton(self._get_ip())], + port=srv_port, + weight=0, + priority=0, + properties=srv_desc) self.zeroconf.register_service(self.zeroconf_info) self.bus.post(ZeroconfServiceAddedEvent(service_type=srv_type, service_name=srv_name))