Skip to content

Commit e2d829d

Browse files
committed
chore: add hash
1 parent 9ae1e66 commit e2d829d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

roborock/data/code_mappings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ def __eq__(self, other: Any) -> bool:
111111
return self.code == other
112112
return super().__eq__(other)
113113

114+
def __hash__(self) -> int:
115+
return hash((self.code, self._value_))
116+
114117

115118
ProductInfo = namedtuple("ProductInfo", ["nickname", "short_models"])
116119

0 commit comments

Comments
 (0)