From d4d4574b3fb05df6ca54699d036d7ce1f0e37b9a Mon Sep 17 00:00:00 2001 From: "Peter F. Patel-Schneider" Date: Mon, 15 Aug 2022 17:25:38 -0400 Subject: [PATCH] device: don't use field that may require communication with device in equality test --- lib/logitech_receiver/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/logitech_receiver/device.py b/lib/logitech_receiver/device.py index 1a9276e0..89494c63 100644 --- a/lib/logitech_receiver/device.py +++ b/lib/logitech_receiver/device.py @@ -449,7 +449,7 @@ class Device: __int__ = __index__ def __eq__(self, other): - return other is not None and self.kind == other.kind and self.wpid == other.wpid + return other is not None and self._kind == other._kind and self.wpid == other.wpid def __ne__(self, other): return other is None or self.kind != other.kind or self.wpid != other.wpid