mirror of
https://github.com/home-assistant/core.git
synced 2025-08-17 19:41:45 +02:00
Enable polling for DSMR derivative entity (#42524)
This commit is contained in:
committed by
Paulus Schoutsen
parent
0959777b81
commit
048db9cb7d
@@ -320,6 +320,16 @@ class DerivativeDSMREntity(DSMREntity):
|
|||||||
"""Return the calculated current hourly rate."""
|
"""Return the calculated current hourly rate."""
|
||||||
return self._state
|
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):
|
async def async_update(self):
|
||||||
"""Recalculate hourly rate if timestamp has changed.
|
"""Recalculate hourly rate if timestamp has changed.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user