Enable polling for DSMR derivative entity (#42524)

pull/42628/head
Rob Bierbooms 2020-10-30 09:11:25 +01:00 committed by GitHub
parent 8a403cde00
commit f470d1e28d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -358,6 +358,16 @@ class DerivativeDSMREntity(DSMREntity):
"""Return the calculated current hourly rate."""
return self._state
@property
def force_update(self):
"""Disable force update."""
return False
@property
def should_poll(self):
"""Enable polling."""
return True
async def async_update(self):
"""Recalculate hourly rate if timestamp has changed.