Set force_update to true for mysensors sensors (#3648)
This commit is contained in:
1 parent
ed490b1c11
commit
c06313a897
1 file changed
+9
@@ -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."""
|
||||
|
||||
Reference in new issue
Block a user