mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 05:35:11 +02:00
Set force_update property for DSMR integration (#42086)
This commit is contained in:
@@ -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."""
|
||||
|
Reference in New Issue
Block a user