diff --git a/lib/logitech_receiver/common.py b/lib/logitech_receiver/common.py index f37a4740..31deee99 100644 --- a/lib/logitech_receiver/common.py +++ b/lib/logitech_receiver/common.py @@ -228,6 +228,9 @@ class NamedInts: def __or__(self, other): return NamedInts(**self.__dict__, **other.__dict__) + def has_element(self, value): + return self[value] == value + class UnsortedNamedInts(NamedInts): def _sort_values(self):