mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
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:
parent
8d0731e9fc
commit
9b0a3e4c5a
@ -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."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user