Force updates for ozw sensors (#38003)
* Force updates and disable polling * Move force_update to sensor
This commit is contained in:
1 parent
65eedcf434
commit
d0d4e08a2a
1 file changed
+5
@@ -87,6 +87,11 @@ class ZwaveSensorBase(ZWaveDeviceEntity):
|
|||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
@property
|
||||||
|
def force_update(self) -> bool:
|
||||||
|
"""Force updates."""
|
||||||
|
return True
|
||||||
|
|
||||||
|
|
||||||
class ZWaveNumericSensor(ZwaveSensorBase):
|
class ZWaveNumericSensor(ZwaveSensorBase):
|
||||||
"""Representation of a Z-Wave sensor."""
|
"""Representation of a Z-Wave sensor."""
|
||||||
|
|||||||
Reference in new issue
Block a user