Skip to content

Commit

Permalink
Added hash function for Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Julius2342 committed Feb 4, 2018
1 parent 104f008 commit 766c541
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xknx/exceptions/exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ def __eq__(self, other):
"""Equal operator."""
return self.__dict__ == other.__dict__

def __hash__(self):
"""Hash function."""
return 0


class CouldNotParseTelegram(XKNXException):
"""Could not parse telegram error."""
Expand Down

0 comments on commit 766c541

Please sign in to comment.