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 the unit of measurement of this entity, if any."""
|
||||||
return self.get_dsmr_object_attr("unit")
|
return self.get_dsmr_object_attr("unit")
|
||||||
|
|
||||||
|
@property
|
||||||
|
def force_update(self):
|
||||||
|
"""Force update."""
|
||||||
|
return True
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def translate_tariff(value, dsmr_version):
|
def translate_tariff(value, dsmr_version):
|
||||||
"""Convert 2/1 to normal/low depending on DSMR version."""
|
"""Convert 2/1 to normal/low depending on DSMR version."""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue