From 252b9b7e41316faf6f2d94d55d44ea0583f54beb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 31 Jul 2020 13:34:31 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20two=20=5F=5Feq=5F=5F=20met?= =?UTF-8?q?hods=20in=20vendored=20zeroconf=20lib?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/octoprint/vendor/zeroconf.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/octoprint/vendor/zeroconf.py b/src/octoprint/vendor/zeroconf.py index 8fabfb495..0d7e388ea 100644 --- a/src/octoprint/vendor/zeroconf.py +++ b/src/octoprint/vendor/zeroconf.py @@ -480,7 +480,7 @@ class DNSAddress(DNSRecord): def __eq__(self, other): """Tests equality on address""" - return isinstance(other, DNSAddress) and self.address == other.address + return isinstance(other, DNSAddress) and self.address == other.address and DNSEntry.__eq__(self, other) def __repr__(self): """String representation""" @@ -513,7 +513,9 @@ class DNSHinfo(DNSRecord): def __eq__(self, other): """Tests equality on cpu and os""" return (isinstance(other, DNSHinfo) and - self.cpu == other.cpu and self.os == other.os) + self.cpu == other.cpu and + self.os == other.os and + DNSEntry.__eq__(self, other)) def __repr__(self): """String representation"""