Skip to content

Commit

Permalink
fix eq method for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
dmulcahey committed Jul 14, 2024
1 parent fa48c48 commit fa062d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zigpy/quirks/v2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def __eq__(self, other: object) -> bool:
"""Return whether this object is equal to another object."""
if not isinstance(other, QuirksV2RegistryEntry):
return False
return self._cached_hash == other._cached_hash
return self.__hash__() == other.__hash__()


@attrs.define
Expand Down

0 comments on commit fa062d2

Please # to comment.