Force update ZHA electrical sensor (#14649)

* force state update because we have a real reading

* hound

* docstring
pull/14580/merge
David F. Mulcahey 2018-05-28 10:22:29 -04:00 committed by Paulus Schoutsen
parent 9a87e62e0e
commit 27f3285d17
1 changed files with 5 additions and 0 deletions

View File

@ -198,6 +198,11 @@ class ElectricalMeasurementSensor(Sensor):
"""Return the unit of measurement of this entity."""
return 'W'
@property
def force_update(self) -> bool:
"""Force update this entity."""
return True
@property
def state(self):
"""Return the state of the entity."""