diff --git a/lib/logitech_receiver/common.py b/lib/logitech_receiver/common.py index b2d871fa..3be447b1 100644 --- a/lib/logitech_receiver/common.py +++ b/lib/logitech_receiver/common.py @@ -44,6 +44,8 @@ class NamedInt(int): return int2bytes(self, count) def __eq__(self, other): + if other is None: + return False if isinstance(other, NamedInt): return int(self) == int(other) and self.name == other.name if isinstance(other, int):