Force updates for ozw sensors (#38003)

* Force updates and disable polling

* Move force_update to sensor
pull/38009/head
Rob Bierbooms 2020-07-20 11:49:05 +02:00 committed by GitHub
parent 65eedcf434
commit d0d4e08a2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -87,6 +87,11 @@ class ZwaveSensorBase(ZWaveDeviceEntity):
return False
return True
@property
def force_update(self) -> bool:
"""Force updates."""
return True
class ZWaveNumericSensor(ZwaveSensorBase):
"""Representation of a Z-Wave sensor."""