From c06313a89780ed84cc40115bb1d18cc0e04a9ba9 Mon Sep 17 00:00:00 2001 From: Martin Hjelmare Date: Wed, 5 Oct 2016 07:45:38 +0200 Subject: [PATCH] Set force_update to true for mysensors sensors (#3648) --- homeassistant/components/sensor/mysensors.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/homeassistant/components/sensor/mysensors.py b/homeassistant/components/sensor/mysensors.py index ba9896b0040..ec39f0aea56 100644 --- a/homeassistant/components/sensor/mysensors.py +++ b/homeassistant/components/sensor/mysensors.py @@ -85,6 +85,15 @@ def setup_platform(hass, config, add_devices, discovery_info=None): class MySensorsSensor(mysensors.MySensorsDeviceEntity, Entity): """Representation of a MySensors Sensor child node.""" + @property + def force_update(self): + """Return True if state updates should be forced. + + If True, a state change will be triggered anytime the state property is + updated, not just when the value changes. + """ + return True + @property def state(self): """Return the state of the device."""