'Call when a value for this entity\'s node has changed.'

def value_changed(self):

    if self._refresh_value:
        if self._refreshing:
            self._refreshing = False
        else:
            def _refresh_value():
                'Use    timer    callback    for    delayed    value    refresh.'
                self._refreshing = True
                self.values.primary.refresh()
            if ((self._timer is not None) and self._timer.isAlive()):
                self._timer.cancel()
            self._timer = Timer(self._delay, _refresh_value)
            self._timer.start()
            return
    super().value_changed()
