Set force_update property for DSMR integration (#42086)

This commit is contained in:
wouterbaake 2020-10-20 09:45:43 +02:00 committed by GitHub
parent 1303d20064
commit 1363fbb02a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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."""