From 27f3285d17a6303443ac46fd0463745f6c9af64b Mon Sep 17 00:00:00 2001 From: "David F. Mulcahey" Date: Mon, 28 May 2018 10:22:29 -0400 Subject: [PATCH] Force update ZHA electrical sensor (#14649) * force state update because we have a real reading * hound * docstring --- homeassistant/components/sensor/zha.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/homeassistant/components/sensor/zha.py b/homeassistant/components/sensor/zha.py index 984d6efed66..3051d8f2afa 100644 --- a/homeassistant/components/sensor/zha.py +++ b/homeassistant/components/sensor/zha.py @@ -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."""