summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2019-01-27 18:38:09 +0100
committerJavier <dev.git@javispedro.com>2019-01-27 18:38:09 +0100
commitd9be3acc196b38322ee210803e170688bd141758 (patch)
tree6c132c5a4c674513c42bac34f98f3097fd93b724
parent4415fe04c11eef4e00fb037ae679e49d04081df1 (diff)
downloadweahome-d9be3acc196b38322ee210803e170688bd141758.tar.gz
weahome-d9be3acc196b38322ee210803e170688bd141758.zip
initialize sensor slots
-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')