Set force_update property for DSMR integration (#42086)
This commit is contained in:
parent
1303d20064
commit
1363fbb02a
1 changed files with 5 additions and 0 deletions
|
@ -273,6 +273,11 @@ class DSMREntity(Entity):
|
|||
"""Return the unit of measurement of this entity, if any."""
|
||||
return self.get_dsmr_object_attr("unit")
|
||||
|
||||
@property
|
||||
def force_update(self):
|
||||
"""Force update."""
|
||||
return True
|
||||
|
||||
@staticmethod
|
||||
def translate_tariff(value, dsmr_version):
|
||||
"""Convert 2/1 to normal/low depending on DSMR version."""
|
||||
|
|
Loading…
Add table
Reference in a new issue