add reconnect retry and longer timeouts for verisure (#1944)

This commit is contained in:
Per Sandström authored and Paulus Schoutsen committed 2016-05-03 18:53:11 -07:00
1 parent 4643dcde9c
commit 4850a65ed0
5 files changed
+44 -11

No files matched your search

@@ -65,6 +65,11 @@ class VerisureThermometer(Entity):
# Remove ° character
return hub.climate_status[self._id].temperature[:-1]
@property
def available(self):
"""Return True if entity is available."""
return hub.available
@property
def unit_of_measurement(self):
"""Return the unit of measurement of this entity."""
@@ -95,6 +100,11 @@ class VerisureHygrometer(Entity):
# remove % character
return hub.climate_status[self._id].humidity[:-1]
@property
def available(self):
"""Return True if entity is available."""
return hub.available
@property
def unit_of_measurement(self):
"""Return the unit of measurement of this sensor."""
@@ -124,6 +134,11 @@ class VerisureMouseDetection(Entity):
"""Return the state of the sensor."""
return hub.mouse_status[self._id].count
@property
def available(self):
"""Return True if entity is available."""
return hub.available
@property
def unit_of_measurement(self):
"""Return the unit of measurement of this sensor."""