Set force_update to true for mysensors sensors (#3648)

This commit is contained in:
Martin Hjelmare 2016-10-05 07:45:38 +02:00 committed by Paulus Schoutsen
parent ed490b1c11
commit c06313a897

View File

@ -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."""