'Turn on or off the device.'

def _change_device_state(self, new_state, data):

    with TELLSTICK_LOCK:
        self._requested_state = new_state
        self._requested_data = data
        self._repeats_left = self._signal_repetitions
        self._send_repeated_command()
        self._update_model(new_state, data)
        self.schedule_update_ha_state()
