code: def get_state(self) -> str:
          '''offline | bootloader | device'''
          output, error = self._execute('get-state')
          if error:
              raise DeviceConnectionException(error.split(':', 1)[-1].strip())
          return output.strip(f get_state(self) -> str:
          '''offline | bootloader | device'''
          output, error = self._execute('get-state')
          if error:
              raise DeviceConnectionException(error.split(':', 1)[-1].strip())
          return output.strip()
docs: offline | bootloader | device