device: don't use field that may require communication with device in equality test
This commit is contained in:
parent
58dde18f3c
commit
d4d4574b3f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue