aboutsummaryrefslogtreecommitdiff
path: root/src/ee
diff options
context:
space:
mode:
Diffstat (limited to 'src/ee')
-rw-r--r--src/ee/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ee/__init__.py b/src/ee/__init__.py
index 1eb79d0..d3885c3 100644
--- a/src/ee/__init__.py
+++ b/src/ee/__init__.py
@@ -59,6 +59,9 @@ class EeVal(object):
def unit(self):
return self._unit
+ def __hash__(self):
+ return hash((self.__float__(), self._unit))
+
def __eq__(self, other):
return ((self.__float__(), self._unit) == (other.__float__(), other._unit))