mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Force updates for ozw sensors (#38003)
* Force updates and disable polling * Move force_update to sensor
This commit is contained in:
parent
65eedcf434
commit
d0d4e08a2a
@ -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."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user