python-zeroconf has introduced too many breaking changes - giving up.
This commit is contained in:
parent
b79fd4e25d
commit
c057cd13fd
1 changed files with 6 additions and 2 deletions
|
@ -347,8 +347,12 @@ class Backend(Thread, EventGenerator):
|
||||||
else:
|
else:
|
||||||
srv_port = self.port if hasattr(self, 'port') else None
|
srv_port = self.port if hasattr(self, 'port') else None
|
||||||
|
|
||||||
self.zeroconf_info = ServiceInfo(srv_type, srv_name, socket.inet_aton(self._get_ip()),
|
self.zeroconf_info = ServiceInfo(srv_type, srv_name,
|
||||||
srv_port, 0, 0, srv_desc)
|
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.zeroconf.register_service(self.zeroconf_info)
|
||||||
self.bus.post(ZeroconfServiceAddedEvent(service_type=srv_type, service_name=srv_name))
|
self.bus.post(ZeroconfServiceAddedEvent(service_type=srv_type, service_name=srv_name))
|
||||||
|
|
Loading…
Reference in a new issue