Fix unit and wrong errorhandling

This commit is contained in:
John Arild Berentsen committed 2016-02-13 09:05:18 +01:00
1 parent c584b6b28d
commit a29be5455c
2 files changed
+2 -5

No files matched your search

+1 -4
View File
@@ -128,10 +128,7 @@ class VerisureMouseDetection(Entity):
@property
def unit_of_measurement(self):
""" Unit of measurement of this entity """
if verisure.MOUSEDETECTION_STATUS[self._id].count >= 1:
return "Mice"
else:
return "Mouse"
return "Mice"
def update(self):
""" update sensor """