logitech_receiver: add has_element to NamedInts
This commit is contained in:
parent
49f2c6d8b9
commit
c3e88001e4
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue