summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xweahome.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/weahome.py b/weahome.py
index acd1d2d..9aae4c9 100755
--- a/weahome.py
+++ b/weahome.py
@@ -138,6 +138,11 @@ class WeahomeSensor:
'humidity', 'humidity_min', 'humidity_max', 'humidity_trend',
'pressure', 'altitude', 'altitude_pressure', 'weather' ]
+ def __init__(self):
+ self.name = None
+ self.registered = False
+ self.online = False
+
@property
def has_temperature(self):
return hasattr(self, 'temperature')