Skip to content

Commit

Permalink
Set force_update to true for mysensors sensors (home-assistant#3648)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinHjelmare authored and hartmms committed Oct 5, 2016
1 parent 5a6c110 commit a0feb38
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions homeassistant/components/sensor/mysensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit a0feb38

Please sign in to comment.