mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
Set force_update to true for mysensors sensors (#3648)
This commit is contained in:
parent
ed490b1c11
commit
c06313a897
@ -85,6 +85,15 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||||||
class MySensorsSensor(mysensors.MySensorsDeviceEntity, Entity):
|
class MySensorsSensor(mysensors.MySensorsDeviceEntity, Entity):
|
||||||
"""Representation of a MySensors Sensor child node."""
|
"""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
|
@property
|
||||||
def state(self):
|
def state(self):
|
||||||
"""Return the state of the device."""
|
"""Return the state of the device."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user