force_update zwave sensors. (#5844)

* force_update zwave sensors with polling_intensity.

* use bool to cast

* Make all zwave sensors force_update=True
This commit is contained in:
Andrey authored and Paulus Schoutsen committed 2017-02-12 14:10:56 -08:00
1 parent 8d0731e9fc
commit 9b0a3e4c5a
1 file changed
+5
+5
View File
@@ -54,6 +54,11 @@ class ZWaveSensor(zwave.ZWaveDeviceEntity):
"""Initialize the sensor."""
zwave.ZWaveDeviceEntity.__init__(self, value, DOMAIN)
@property
def force_update(self):
"""Return force_update."""
return True
@property
def state(self):
"""Return the state of the sensor."""