code: def _send_locked(self, cmd):
      
      _LOGGER.debug("Sending: %s" % cmd)
      try:
        self._telnet.write(cmd.encode('ascii') + b'\r\n')
      except BrokenPipeError:
        self._disconnect_locked()
docs: Sends the specified command to the lutron controller.
  
      Assumes self._lock is held.