Skip to content

Commit

Permalink
Set force_update property for DSMR integration (#42086)
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterbaake authored Oct 20, 2020
1 parent 1303d20 commit 1363fbb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions homeassistant/components/dsmr/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,11 @@ def unit_of_measurement(self):
"""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."""
Expand Down

0 comments on commit 1363fbb

Please sign in to comment.