diff options
author | Javier <dev.git@javispedro.com> | 2019-01-27 18:38:09 +0100 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2019-01-27 18:38:09 +0100 |
commit | d9be3acc196b38322ee210803e170688bd141758 (patch) | |
tree | 6c132c5a4c674513c42bac34f98f3097fd93b724 | |
parent | 4415fe04c11eef4e00fb037ae679e49d04081df1 (diff) | |
download | weahome-d9be3acc196b38322ee210803e170688bd141758.tar.gz weahome-d9be3acc196b38322ee210803e170688bd141758.zip |
initialize sensor slots
-rwxr-xr-x | weahome.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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') |