(self)
return udid
to run this function, there must be only one device connected
        
        Raises:
            MuxError
to run this function, there must be only one device connected
        
        Raises:
            MuxError
to run this function there must be only one device connected Raises : MuxError
def get_single_device_udid(self) -> str:
        """ to run this function, there must be only one device connected
        
        Raises:
            MuxError
        """
        devices = self.device_list()
        if len(devices) == 0:
            raise MuxError("No device connected")
        if len(devices) > 1:
            raise MuxError("More then two device connected")
        udid = devices[0]['SerialNumber']
        return udid
def get_single_device_udid ( self ) -> str : devices = self . device_list ( ) if len ( devices ) == 0 : raise MuxError ( "No device connected" ) if len ( devices ) > 1 : raise MuxError ( "More then two device connected" ) udid = devices [ 0 ] [ 'SerialNumber' ] return udid