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 2017-02-13 00:10:56 +02:00 committed by Paulus Schoutsen
parent 8d0731e9fc
commit 9b0a3e4c5a

View File

@ -54,6 +54,11 @@ class ZWaveSensor(zwave.ZWaveDeviceEntity):
"""Initialize the sensor.""" """Initialize the sensor."""
zwave.ZWaveDeviceEntity.__init__(self, value, DOMAIN) zwave.ZWaveDeviceEntity.__init__(self, value, DOMAIN)
@property
def force_update(self):
"""Return force_update."""
return True
@property @property
def state(self): def state(self):
"""Return the state of the sensor.""" """Return the state of the sensor."""