device: don't use field that may require communication with device in equality test

This commit is contained in:
Peter F. Patel-Schneider 2022-08-15 17:25:38 -04:00
parent 58dde18f3c
commit d4d4574b3f
1 changed files with 1 additions and 1 deletions

View File

@ -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